Class: Bskyrb::ComAtprotoSyncGetblob::GetBlob::Input
- Inherits:
-
Object
- Object
- Bskyrb::ComAtprotoSyncGetblob::GetBlob::Input
- Defined in:
- lib/bskyrb/generated_classes.rb
Instance Attribute Summary collapse
-
#cid ⇒ Object
Returns the value of attribute cid.
-
#did ⇒ Object
Returns the value of attribute did.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#cid ⇒ Object
Returns the value of attribute cid.
5700 5701 5702 |
# File 'lib/bskyrb/generated_classes.rb', line 5700 def cid @cid end |
#did ⇒ Object
Returns the value of attribute did.
5698 5699 5700 |
# File 'lib/bskyrb/generated_classes.rb', line 5698 def did @did end |
Class Method Details
.from_hash(hash) ⇒ Object
5702 5703 5704 5705 5706 5707 5708 5709 5710 5711 |
# File 'lib/bskyrb/generated_classes.rb', line 5702 def self.from_hash(hash) # httparty-returned string-keyed hash instance = new instance.send(:did=, hash["did"]) instance.send(:cid=, hash["cid"]) instance end |
Instance Method Details
#to_h ⇒ Object
5713 5714 5715 5716 5717 5718 5719 5720 5721 |
# File 'lib/bskyrb/generated_classes.rb', line 5713 def to_h { "did" => did, "cid" => cid } end |