Class: Google::Apis::BooksV1::DictLayerData::Dict::Word
- Inherits:
-
Object
- Object
- Google::Apis::BooksV1::DictLayerData::Dict::Word
- 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
-
#derivatives ⇒ Array<Google::Apis::BooksV1::DictLayerData::Dict::Word::Derivative>
Corresponds to the JSON property
derivatives
. -
#examples ⇒ Array<Google::Apis::BooksV1::DictLayerData::Dict::Word::Example>
Corresponds to the JSON property
examples
. -
#senses ⇒ Array<Google::Apis::BooksV1::DictLayerData::Dict::Word::Sense>
Corresponds to the JSON property
senses
. -
#source ⇒ Google::Apis::BooksV1::DictLayerData::Dict::Word::Source
The words with different meanings but not related words, e.g.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Word
constructor
A new instance of Word.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
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
#derivatives ⇒ Array<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 |
#examples ⇒ Array<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 |
#senses ⇒ Array<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 |
#source ⇒ Google::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 |