Class: Bskyrb::ComAtprotoRepoDescriberepo::DescribeRepo::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

#collectionsObject

Returns the value of attribute collections.



4709
4710
4711
# File 'lib/bskyrb/generated_classes.rb', line 4709

def collections
  @collections
end

#didObject

Returns the value of attribute did.



4705
4706
4707
# File 'lib/bskyrb/generated_classes.rb', line 4705

def did
  @did
end

#didDocObject

Returns the value of attribute didDoc.



4707
4708
4709
# File 'lib/bskyrb/generated_classes.rb', line 4707

def didDoc
  @didDoc
end

#handleObject

Returns the value of attribute handle.



4703
4704
4705
# File 'lib/bskyrb/generated_classes.rb', line 4703

def handle
  @handle
end

#handleIsCorrectObject

Returns the value of attribute handleIsCorrect.



4711
4712
4713
# File 'lib/bskyrb/generated_classes.rb', line 4711

def handleIsCorrect
  @handleIsCorrect
end

Class Method Details

.from_hash(hash) ⇒ Object



4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
# File 'lib/bskyrb/generated_classes.rb', line 4713

def self.from_hash(hash)
  # httparty-returned string-keyed hash
  instance = new

  instance.send(:handle=, hash["handle"])

  instance.send(:did=, hash["did"])

  instance.send(:didDoc=, hash["didDoc"])

  instance.send(:collections=, hash["collections"])

  instance.send(:handleIsCorrect=, hash["handleIsCorrect"])

  instance
end

Instance Method Details

#to_hObject



4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
# File 'lib/bskyrb/generated_classes.rb', line 4730

def to_h
  {

    "handle" => handle,

    "did" => did,

    "didDoc" => didDoc,

    "collections" => collections,

    "handleIsCorrect" => handleIsCorrect

  }
end