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.



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

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

Instance Attribute Details

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

Corresponds to the JSON property derivatives



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

def derivatives
  @derivatives
end

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

Corresponds to the JSON property examples



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

def examples
  @examples
end

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

Corresponds to the JSON property senses



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

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



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

def source
  @source
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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