Class: Google::Apis::StreetviewpublishV1::PhotoId

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

Overview

Identifier for a Photo.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PhotoId

Returns a new instance of PhotoId.



632
633
634
# File 'lib/google/apis/streetviewpublish_v1/classes.rb', line 632

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

Instance Attribute Details

#idString

A unique identifier for a photo. Corresponds to the JSON property id

Returns:

  • (String)


630
631
632
# File 'lib/google/apis/streetviewpublish_v1/classes.rb', line 630

def id
  @id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



637
638
639
# File 'lib/google/apis/streetviewpublish_v1/classes.rb', line 637

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