Class: Bskyrb::AppBskyEmbedImages::ViewImage
- Inherits:
-
Object
- Object
- Bskyrb::AppBskyEmbedImages::ViewImage
- Defined in:
- lib/bskyrb/generated_classes.rb
Instance Attribute Summary collapse
-
#alt ⇒ Object
Returns the value of attribute alt.
-
#fullsize ⇒ Object
Returns the value of attribute fullsize.
-
#thumb ⇒ Object
Returns the value of attribute thumb.
Class Method Summary collapse
Instance Attribute Details
#alt ⇒ Object
Returns the value of attribute alt.
333 334 335 |
# File 'lib/bskyrb/generated_classes.rb', line 333 def alt @alt end |
#fullsize ⇒ Object
Returns the value of attribute fullsize.
331 332 333 |
# File 'lib/bskyrb/generated_classes.rb', line 331 def fullsize @fullsize end |
#thumb ⇒ Object
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 |