Class: Bskyrb::ComAtprotoAdminGetrecord::GetRecord::Input

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.



3903
3904
3905
# File 'lib/bskyrb/generated_classes.rb', line 3903

def cid
  @cid
end

#uriObject

Returns the value of attribute uri.



3901
3902
3903
# File 'lib/bskyrb/generated_classes.rb', line 3901

def uri
  @uri
end

Class Method Details

.from_hash(hash) ⇒ Object



3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
# File 'lib/bskyrb/generated_classes.rb', line 3905

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



3916
3917
3918
3919
3920
3921
3922
3923
3924
# File 'lib/bskyrb/generated_classes.rb', line 3916

def to_h
  {

    "uri" => uri,

    "cid" => cid

  }
end