Class: Bskyrb::ComAtprotoRepoListrecords::ListRecords::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

#cursorObject

Returns the value of attribute cursor.



4885
4886
4887
# File 'lib/bskyrb/generated_classes.rb', line 4885

def cursor
  @cursor
end

#recordsObject

Returns the value of attribute records.



4887
4888
4889
# File 'lib/bskyrb/generated_classes.rb', line 4887

def records
  @records
end

Class Method Details

.from_hash(hash) ⇒ Object



4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
# File 'lib/bskyrb/generated_classes.rb', line 4889

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

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

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

  instance
end

Instance Method Details

#to_hObject



4900
4901
4902
4903
4904
4905
4906
4907
4908
# File 'lib/bskyrb/generated_classes.rb', line 4900

def to_h
  {

    "cursor" => cursor,

    "records" => records

  }
end