Class: Bskyrb::ComAtprotoSyncSubscriberepos::Commit

Inherits:
Object
  • Object
show all
Defined in:
lib/bskyrb/generated_classes.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#blobsObject

Returns the value of attribute blobs.



1935
1936
1937
# File 'lib/bskyrb/generated_classes.rb', line 1935

def blobs
  @blobs
end

#blocksObject

Returns the value of attribute blocks.



1931
1932
1933
# File 'lib/bskyrb/generated_classes.rb', line 1931

def blocks
  @blocks
end

#commitObject

Returns the value of attribute commit.



1927
1928
1929
# File 'lib/bskyrb/generated_classes.rb', line 1927

def commit
  @commit
end

#opsObject

Returns the value of attribute ops.



1933
1934
1935
# File 'lib/bskyrb/generated_classes.rb', line 1933

def ops
  @ops
end

#prevObject

Returns the value of attribute prev.



1929
1930
1931
# File 'lib/bskyrb/generated_classes.rb', line 1929

def prev
  @prev
end

#rebaseObject

Returns the value of attribute rebase.



1921
1922
1923
# File 'lib/bskyrb/generated_classes.rb', line 1921

def rebase
  @rebase
end

#repoObject

Returns the value of attribute repo.



1925
1926
1927
# File 'lib/bskyrb/generated_classes.rb', line 1925

def repo
  @repo
end

#seqObject

Returns the value of attribute seq.



1919
1920
1921
# File 'lib/bskyrb/generated_classes.rb', line 1919

def seq
  @seq
end

#timeObject

Returns the value of attribute time.



1937
1938
1939
# File 'lib/bskyrb/generated_classes.rb', line 1937

def time
  @time
end

#tooBigObject

Returns the value of attribute tooBig.



1923
1924
1925
# File 'lib/bskyrb/generated_classes.rb', line 1923

def tooBig
  @tooBig
end

Class Method Details

.from_hash(hash) ⇒ Object



1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
# File 'lib/bskyrb/generated_classes.rb', line 1939

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

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

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

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

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

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

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

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

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

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

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

  instance
end