Class: Bskyrb::ComAtprotoRepoCreaterecord::CreateRecord::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.



4604
4605
4606
# File 'lib/bskyrb/generated_classes.rb', line 4604

def cid
  @cid
end

#uriObject

Returns the value of attribute uri.



4602
4603
4604
# File 'lib/bskyrb/generated_classes.rb', line 4602

def uri
  @uri
end

Class Method Details

.from_hash(hash) ⇒ Object



4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
# File 'lib/bskyrb/generated_classes.rb', line 4606

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



4617
4618
4619
4620
4621
4622
4623
4624
4625
# File 'lib/bskyrb/generated_classes.rb', line 4617

def to_h
  {

    "uri" => uri,

    "cid" => cid

  }
end