Class: Bskyrb::AppBskyEmbedImages::ViewImage

Inherits:
Object
  • Object
show all
Defined in:
lib/bskyrb/generated_classes.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#altObject

Returns the value of attribute alt.



333
334
335
# File 'lib/bskyrb/generated_classes.rb', line 333

def alt
  @alt
end

#fullsizeObject

Returns the value of attribute fullsize.



331
332
333
# File 'lib/bskyrb/generated_classes.rb', line 331

def fullsize
  @fullsize
end

#thumbObject

Returns the value of attribute thumb.



329
330
331
# File 'lib/bskyrb/generated_classes.rb', line 329

def thumb
  @thumb
end

Class Method Details

.from_hash(hash) ⇒ Object



335
336
337
338
339
340
341
342
343
344
345
346
# File 'lib/bskyrb/generated_classes.rb', line 335

def self.from_hash(hash)
  # httparty-returned string-keyed hash
  instance = new

  instance.send(:thumb=, hash["thumb"])

  instance.send(:fullsize=, hash["fullsize"])

  instance.send(:alt=, hash["alt"])

  instance
end