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

#commitsObject

Returns the value of attribute commits.



5824
5825
5826
# File 'lib/bskyrb/generated_classes.rb', line 5824

def commits
  @commits
end

Class Method Details

.from_hash(hash) ⇒ Object



5826
5827
5828
5829
5830
5831
5832
5833
# File 'lib/bskyrb/generated_classes.rb', line 5826

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

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

  instance
end

Instance Method Details

#to_hObject



5835
5836
5837
5838
5839
5840
5841
# File 'lib/bskyrb/generated_classes.rb', line 5835

def to_h
  {

    "commits" => commits

  }
end