Class: Google::Apis::PhotoslibraryV1::MapEnrichment
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::PhotoslibraryV1::MapEnrichment
 
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/photoslibrary_v1/classes.rb,
 generated/google/apis/photoslibrary_v1/representations.rb,
 generated/google/apis/photoslibrary_v1/representations.rb
Overview
An enrichment containing a map, showing origin and destination locations.
Instance Attribute Summary collapse
- 
  
    
      #destination  ⇒ Google::Apis::PhotoslibraryV1::Location 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Represents a physical location. 
- 
  
    
      #origin  ⇒ Google::Apis::PhotoslibraryV1::Location 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Represents a physical location. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ MapEnrichment 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of MapEnrichment. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ MapEnrichment
Returns a new instance of MapEnrichment
| 677 678 679 | # File 'generated/google/apis/photoslibrary_v1/classes.rb', line 677 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#destination ⇒ Google::Apis::PhotoslibraryV1::Location
Represents a physical location.
Corresponds to the JSON property destination
| 670 671 672 | # File 'generated/google/apis/photoslibrary_v1/classes.rb', line 670 def destination @destination end | 
#origin ⇒ Google::Apis::PhotoslibraryV1::Location
Represents a physical location.
Corresponds to the JSON property origin
| 675 676 677 | # File 'generated/google/apis/photoslibrary_v1/classes.rb', line 675 def origin @origin end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 682 683 684 685 | # File 'generated/google/apis/photoslibrary_v1/classes.rb', line 682 def update!(**args) @destination = args[:destination] if args.key?(:destination) @origin = args[:origin] if args.key?(:origin) end |