Class: Bskyrb::ComAtprotoAdminGetmoderationreports::GetModerationReports::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.



3870
3871
3872
# File 'lib/bskyrb/generated_classes.rb', line 3870

def cursor
  @cursor
end

#reportsObject

Returns the value of attribute reports.



3872
3873
3874
# File 'lib/bskyrb/generated_classes.rb', line 3872

def reports
  @reports
end

Class Method Details

.from_hash(hash) ⇒ Object



3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
# File 'lib/bskyrb/generated_classes.rb', line 3874

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

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

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

  instance
end

Instance Method Details

#to_hObject



3885
3886
3887
3888
3889
3890
3891
3892
3893
# File 'lib/bskyrb/generated_classes.rb', line 3885

def to_h
  {

    "cursor" => cursor,

    "reports" => reports

  }
end