Class: Google::Apis::BooksV1::DictLayerData::Dict

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: Source, Word

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

Returns a new instance of Dict.



870
871
872
# File 'generated/google/apis/books_v1/classes.rb', line 870

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

Instance Attribute Details

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

The source, url and attribution for this dictionary data. Corresponds to the JSON property source



863
864
865
# File 'generated/google/apis/books_v1/classes.rb', line 863

def source
  @source
end

#wordsArray<Google::Apis::BooksV1::DictLayerData::Dict::Word>

Corresponds to the JSON property words



868
869
870
# File 'generated/google/apis/books_v1/classes.rb', line 868

def words
  @words
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



875
876
877
878
# File 'generated/google/apis/books_v1/classes.rb', line 875

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