Class: Bskyrb::AppBskyEmbedExternal::External
- Inherits:
-
Object
- Object
- Bskyrb::AppBskyEmbedExternal::External
- 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.
230 231 232 |
# File 'lib/bskyrb/generated_classes.rb', line 230 def description @description end |
#thumb ⇒ Object
Returns the value of attribute thumb.
232 233 234 |
# File 'lib/bskyrb/generated_classes.rb', line 232 def thumb @thumb end |
#title ⇒ Object
Returns the value of attribute title.
228 229 230 |
# File 'lib/bskyrb/generated_classes.rb', line 228 def title @title end |
#uri ⇒ Object
Returns the value of attribute uri.
226 227 228 |
# File 'lib/bskyrb/generated_classes.rb', line 226 def uri @uri end |
Class Method Details
.from_hash(hash) ⇒ Object
234 235 236 237 238 239 240 241 242 243 244 245 246 247 |
# File 'lib/bskyrb/generated_classes.rb', line 234 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 |