Class: Google::Apis::BooksV1::DictLayerData::Dict::Word

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/books_v1/classes.rb,
generated/google/apis/books_v1/representations.rb,
generated/google/apis/books_v1/representations.rb

Defined Under Namespace

Classes: Derivative, Example, Sense, Source

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Word

Returns a new instance of Word



931
932
933
# File 'generated/google/apis/books_v1/classes.rb', line 931

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#derivativesArray<Google::Apis::BooksV1::DictLayerData::Dict::Word::Derivative>

Corresponds to the JSON property derivatives



913
914
915
# File 'generated/google/apis/books_v1/classes.rb', line 913

def derivatives
  @derivatives
end

#examplesArray<Google::Apis::BooksV1::DictLayerData::Dict::Word::Example>

Corresponds to the JSON property examples



918
919
920
# File 'generated/google/apis/books_v1/classes.rb', line 918

def examples
  @examples
end

#sensesArray<Google::Apis::BooksV1::DictLayerData::Dict::Word::Sense>

Corresponds to the JSON property senses



923
924
925
# File 'generated/google/apis/books_v1/classes.rb', line 923

def senses
  @senses
end

#sourceGoogle::Apis::BooksV1::DictLayerData::Dict::Word::Source

The words with different meanings but not related words, e.g. "go" (game) and " go" (verb). Corresponds to the JSON property source



929
930
931
# File 'generated/google/apis/books_v1/classes.rb', line 929

def source
  @source
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



936
937
938
939
940
941
# File 'generated/google/apis/books_v1/classes.rb', line 936

def update!(**args)
  @derivatives = args[:derivatives] if args.key?(:derivatives)
  @examples = args[:examples] if args.key?(:examples)
  @senses = args[:senses] if args.key?(:senses)
  @source = args[:source] if args.key?(:source)
end