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

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: Example

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) ⇒ Definition

Returns a new instance of Definition.



1141
1142
1143
# File 'generated/google/apis/books_v1/classes.rb', line 1141

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

Instance Attribute Details

#definitionString

Corresponds to the JSON property definition

Returns:

  • (String)


1134
1135
1136
# File 'generated/google/apis/books_v1/classes.rb', line 1134

def definition
  @definition
end

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

Corresponds to the JSON property examples



1139
1140
1141
# File 'generated/google/apis/books_v1/classes.rb', line 1139

def examples
  @examples
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1146
1147
1148
1149
# File 'generated/google/apis/books_v1/classes.rb', line 1146

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