Class: Bskyrb::ComAtprotoRepoPutrecord::PutRecord::Output
- Inherits:
-
Object
- Object
- Bskyrb::ComAtprotoRepoPutrecord::PutRecord::Output
- Defined in:
- lib/bskyrb/generated_classes.rb
Instance Attribute Summary collapse
-
#cid ⇒ Object
Returns the value of attribute cid.
-
#uri ⇒ Object
Returns the value of attribute uri.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#cid ⇒ Object
Returns the value of attribute cid.
4975 4976 4977 |
# File 'lib/bskyrb/generated_classes.rb', line 4975 def cid @cid end |
#uri ⇒ Object
Returns the value of attribute uri.
4973 4974 4975 |
# File 'lib/bskyrb/generated_classes.rb', line 4973 def uri @uri end |
Class Method Details
.from_hash(hash) ⇒ Object
4977 4978 4979 4980 4981 4982 4983 4984 4985 4986 |
# File 'lib/bskyrb/generated_classes.rb', line 4977 def self.from_hash(hash) # httparty-returned string-keyed hash instance = new instance.send(:uri=, hash["uri"]) instance.send(:cid=, hash["cid"]) instance end |
Instance Method Details
#to_h ⇒ Object
4988 4989 4990 4991 4992 4993 4994 4995 4996 |
# File 'lib/bskyrb/generated_classes.rb', line 4988 def to_h { "uri" => uri, "cid" => cid } end |