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.
930 931 932 |
# File 'generated/google/apis/books_v1/classes.rb', line 930 def initialize(**args) update!(**args) end |
Instance Attribute Details
#derivatives ⇒ Array<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 |
#examples ⇒ Array<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 |
#senses ⇒ Array<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 |
#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
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 |