Class: Bskyrb::AppBskyEmbedRecord::ViewRecord
- Inherits:
-
Object
- Object
- Bskyrb::AppBskyEmbedRecord::ViewRecord
- Defined in:
- lib/bskyrb/generated_classes.rb
Instance Attribute Summary collapse
-
#author ⇒ Object
Returns the value of attribute author.
-
#cid ⇒ Object
Returns the value of attribute cid.
-
#embeds ⇒ Object
Returns the value of attribute embeds.
-
#indexedAt ⇒ Object
Returns the value of attribute indexedAt.
-
#labels ⇒ Object
Returns the value of attribute labels.
-
#uri ⇒ Object
Returns the value of attribute uri.
-
#value ⇒ Object
Returns the value of attribute value.
Class Method Summary collapse
Instance Attribute Details
#author ⇒ Object
Returns the value of attribute author.
371 372 373 |
# File 'lib/bskyrb/generated_classes.rb', line 371 def end |
#cid ⇒ Object
Returns the value of attribute cid.
369 370 371 |
# File 'lib/bskyrb/generated_classes.rb', line 369 def cid @cid end |
#embeds ⇒ Object
Returns the value of attribute embeds.
377 378 379 |
# File 'lib/bskyrb/generated_classes.rb', line 377 def end |
#indexedAt ⇒ Object
Returns the value of attribute indexedAt.
379 380 381 |
# File 'lib/bskyrb/generated_classes.rb', line 379 def indexedAt @indexedAt end |
#labels ⇒ Object
Returns the value of attribute labels.
375 376 377 |
# File 'lib/bskyrb/generated_classes.rb', line 375 def labels @labels end |
#uri ⇒ Object
Returns the value of attribute uri.
367 368 369 |
# File 'lib/bskyrb/generated_classes.rb', line 367 def uri @uri end |
#value ⇒ Object
Returns the value of attribute value.
373 374 375 |
# File 'lib/bskyrb/generated_classes.rb', line 373 def value @value end |
Class Method Details
.from_hash(hash) ⇒ Object
381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 |
# File 'lib/bskyrb/generated_classes.rb', line 381 def self.from_hash(hash) # httparty-returned string-keyed hash instance = new instance.send(:uri=, hash["uri"]) instance.send(:cid=, hash["cid"]) instance.send(:author=, hash["author"]) instance.send(:value=, hash["value"]) instance.send(:labels=, hash["labels"]) instance.send(:embeds=, hash["embeds"]) instance.send(:indexedAt=, hash["indexedAt"]) instance end |