Class: Bskyrb::ComAtprotoSyncGetcommitpath::GetCommitPath::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.



5791
5792
5793
# File 'lib/bskyrb/generated_classes.rb', line 5791

def did
  @did
end

#earliestObject

Returns the value of attribute earliest.



5795
5796
5797
# File 'lib/bskyrb/generated_classes.rb', line 5795

def earliest
  @earliest
end

#latestObject

Returns the value of attribute latest.



5793
5794
5795
# File 'lib/bskyrb/generated_classes.rb', line 5793

def latest
  @latest
end

Class Method Details

.from_hash(hash) ⇒ Object



5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
# File 'lib/bskyrb/generated_classes.rb', line 5797

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



5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
# File 'lib/bskyrb/generated_classes.rb', line 5810

def to_h
  {

    "did" => did,

    "latest" => latest,

    "earliest" => earliest

  }
end