Class: Google::Apis::PlusV1::Activity::Object::Attachment::Image
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::PlusV1::Activity::Object::Attachment::Image
 
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/plus_v1/classes.rb,
 generated/google/apis/plus_v1/representations.rb,
 generated/google/apis/plus_v1/representations.rb
Overview
The preview image for photos or videos.
Instance Attribute Summary collapse
- 
  
    
      #height  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The height, in pixels, of the linked resource. 
- 
  
    
      #type  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Media type of the link. 
- 
  
    
      #url  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Image URL. 
- 
  
    
      #width  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The width, in pixels, of the linked resource. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ Image 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of Image. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Image
Returns a new instance of Image
| 719 720 721 | # File 'generated/google/apis/plus_v1/classes.rb', line 719 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#height ⇒ Fixnum
The height, in pixels, of the linked resource.
Corresponds to the JSON property height
| 702 703 704 | # File 'generated/google/apis/plus_v1/classes.rb', line 702 def height @height end | 
#type ⇒ String
Media type of the link.
Corresponds to the JSON property type
| 707 708 709 | # File 'generated/google/apis/plus_v1/classes.rb', line 707 def type @type end | 
#url ⇒ String
Image URL.
Corresponds to the JSON property url
| 712 713 714 | # File 'generated/google/apis/plus_v1/classes.rb', line 712 def url @url end | 
#width ⇒ Fixnum
The width, in pixels, of the linked resource.
Corresponds to the JSON property width
| 717 718 719 | # File 'generated/google/apis/plus_v1/classes.rb', line 717 def width @width end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 724 725 726 727 728 729 | # File 'generated/google/apis/plus_v1/classes.rb', line 724 def update!(**args) @height = args[:height] if args.key?(:height) @type = args[:type] if args.key?(:type) @url = args[:url] if args.key?(:url) @width = args[:width] if args.key?(:width) end |