Class: Bskyrb::ComAtprotoRepoPutrecord::PutRecord::Output

Inherits:
Object
  • Object
show all
Defined in:
lib/bskyrb/generated_classes.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#cidObject

Returns the value of attribute cid.



4975
4976
4977
# File 'lib/bskyrb/generated_classes.rb', line 4975

def cid
  @cid
end

#uriObject

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_hObject



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