Class: Bskyrb::AppBskyEmbedExternal::ViewExternal
- Inherits:
-
Object
- Object
- Bskyrb::AppBskyEmbedExternal::ViewExternal
- Defined in:
- lib/bskyrb/generated_classes.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
Returns the value of attribute description.
-
#thumb ⇒ Object
Returns the value of attribute thumb.
-
#title ⇒ Object
Returns the value of attribute title.
-
#uri ⇒ Object
Returns the value of attribute uri.
Class Method Summary collapse
Instance Attribute Details
#description ⇒ Object
Returns the value of attribute description.
272 273 274 |
# File 'lib/bskyrb/generated_classes.rb', line 272 def description @description end |
#thumb ⇒ Object
Returns the value of attribute thumb.
274 275 276 |
# File 'lib/bskyrb/generated_classes.rb', line 274 def thumb @thumb end |
#title ⇒ Object
Returns the value of attribute title.
270 271 272 |
# File 'lib/bskyrb/generated_classes.rb', line 270 def title @title end |
#uri ⇒ Object
Returns the value of attribute uri.
268 269 270 |
# File 'lib/bskyrb/generated_classes.rb', line 268 def uri @uri end |
Class Method Details
.from_hash(hash) ⇒ Object
276 277 278 279 280 281 282 283 284 285 286 287 288 289 |
# File 'lib/bskyrb/generated_classes.rb', line 276 def self.from_hash(hash) # httparty-returned string-keyed hash instance = new instance.send(:uri=, hash["uri"]) instance.send(:title=, hash["title"]) instance.send(:description=, hash["description"]) instance.send(:thumb=, hash["thumb"]) instance end |