Class: Bskyrb::ComAtprotoSyncListblobs::ListBlobs::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

#didObject

Returns the value of attribute did.



5975
5976
5977
# File 'lib/bskyrb/generated_classes.rb', line 5975

def did
  @did
end

#earliestObject

Returns the value of attribute earliest.



5979
5980
5981
# File 'lib/bskyrb/generated_classes.rb', line 5979

def earliest
  @earliest
end

#latestObject

Returns the value of attribute latest.



5977
5978
5979
# File 'lib/bskyrb/generated_classes.rb', line 5977

def latest
  @latest
end

Class Method Details

.from_hash(hash) ⇒ Object



5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
# File 'lib/bskyrb/generated_classes.rb', line 5981

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

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

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

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

  instance
end

Instance Method Details

#to_hObject



5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
# File 'lib/bskyrb/generated_classes.rb', line 5994

def to_h
  {

    "did" => did,

    "latest" => latest,

    "earliest" => earliest

  }
end