Class: Google::Apis::AndroidpublisherV2::Image

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/androidpublisher_v2/classes.rb,
generated/google/apis/androidpublisher_v2/representations.rb,
generated/google/apis/androidpublisher_v2/representations.rb

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

Returns a new instance of Image



627
628
629
# File 'generated/google/apis/androidpublisher_v2/classes.rb', line 627

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

Instance Attribute Details

#idString

A unique id representing this image. Corresponds to the JSON property id

Returns:

  • (String)


615
616
617
# File 'generated/google/apis/androidpublisher_v2/classes.rb', line 615

def id
  @id
end

#sha1String

A sha1 hash of the image that was uploaded. Corresponds to the JSON property sha1

Returns:

  • (String)


620
621
622
# File 'generated/google/apis/androidpublisher_v2/classes.rb', line 620

def sha1
  @sha1
end

#urlString

A URL that will serve a preview of the image. Corresponds to the JSON property url

Returns:

  • (String)


625
626
627
# File 'generated/google/apis/androidpublisher_v2/classes.rb', line 625

def url
  @url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



632
633
634
635
636
# File 'generated/google/apis/androidpublisher_v2/classes.rb', line 632

def update!(**args)
  @id = args[:id] if args.key?(:id)
  @sha1 = args[:sha1] if args.key?(:sha1)
  @url = args[:url] if args.key?(:url)
end