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

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: Conjugation, Definition, Source, Synonym

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

Returns a new instance of Sense.



1124
1125
1126
# File 'generated/google/apis/books_v1/classes.rb', line 1124

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

Instance Attribute Details

#conjugationsArray<Google::Apis::BooksV1::DictLayerData::Dict::Word::Sense::Conjugation>

Corresponds to the JSON property conjugations



1087
1088
1089
# File 'generated/google/apis/books_v1/classes.rb', line 1087

def conjugations
  @conjugations
end

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

Corresponds to the JSON property definitions



1092
1093
1094
# File 'generated/google/apis/books_v1/classes.rb', line 1092

def definitions
  @definitions
end

#part_of_speechString

Corresponds to the JSON property partOfSpeech

Returns:

  • (String)


1097
1098
1099
# File 'generated/google/apis/books_v1/classes.rb', line 1097

def part_of_speech
  @part_of_speech
end

#pronunciationString

Corresponds to the JSON property pronunciation

Returns:

  • (String)


1102
1103
1104
# File 'generated/google/apis/books_v1/classes.rb', line 1102

def pronunciation
  @pronunciation
end

#pronunciation_urlString

Corresponds to the JSON property pronunciationUrl

Returns:

  • (String)


1107
1108
1109
# File 'generated/google/apis/books_v1/classes.rb', line 1107

def pronunciation_url
  @pronunciation_url
end

#sourceGoogle::Apis::BooksV1::DictLayerData::Dict::Word::Sense::Source

Corresponds to the JSON property source



1112
1113
1114
# File 'generated/google/apis/books_v1/classes.rb', line 1112

def source
  @source
end

#syllabificationString

Corresponds to the JSON property syllabification

Returns:

  • (String)


1117
1118
1119
# File 'generated/google/apis/books_v1/classes.rb', line 1117

def syllabification
  @syllabification
end

#synonymsArray<Google::Apis::BooksV1::DictLayerData::Dict::Word::Sense::Synonym>

Corresponds to the JSON property synonyms



1122
1123
1124
# File 'generated/google/apis/books_v1/classes.rb', line 1122

def synonyms
  @synonyms
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
# File 'generated/google/apis/books_v1/classes.rb', line 1129

def update!(**args)
  @conjugations = args[:conjugations] if args.key?(:conjugations)
  @definitions = args[:definitions] if args.key?(:definitions)
  @part_of_speech = args[:part_of_speech] if args.key?(:part_of_speech)
  @pronunciation = args[:pronunciation] if args.key?(:pronunciation)
  @pronunciation_url = args[:pronunciation_url] if args.key?(:pronunciation_url)
  @source = args[:source] if args.key?(:source)
  @syllabification = args[:syllabification] if args.key?(:syllabification)
  @synonyms = args[:synonyms] if args.key?(:synonyms)
end