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.
Constructor Details
#initialize(**args) ⇒ Word
Returns a new instance of Word.
932 933 934 |
# File 'generated/google/apis/books_v1/classes.rb', line 932 def initialize(**args) update!(**args) end |
Instance Attribute Details
#derivatives ⇒ Array<Google::Apis::BooksV1::DictLayerData::Dict::Word::Derivative>
Corresponds to the JSON property derivatives
914 915 916 |
# File 'generated/google/apis/books_v1/classes.rb', line 914 def derivatives @derivatives end |
#examples ⇒ Array<Google::Apis::BooksV1::DictLayerData::Dict::Word::Example>
Corresponds to the JSON property examples
919 920 921 |
# File 'generated/google/apis/books_v1/classes.rb', line 919 def examples @examples end |
#senses ⇒ Array<Google::Apis::BooksV1::DictLayerData::Dict::Word::Sense>
Corresponds to the JSON property senses
924 925 926 |
# File 'generated/google/apis/books_v1/classes.rb', line 924 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
930 931 932 |
# File 'generated/google/apis/books_v1/classes.rb', line 930 def source @source end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
937 938 939 940 941 942 |
# File 'generated/google/apis/books_v1/classes.rb', line 937 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 |