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

#actionTypeObject

Returns the value of attribute actionType.



3829
3830
3831
# File 'lib/bskyrb/generated_classes.rb', line 3829

def actionType
  @actionType
end

#cursorObject

Returns the value of attribute cursor.



3833
3834
3835
# File 'lib/bskyrb/generated_classes.rb', line 3833

def cursor
  @cursor
end

#limitObject

Returns the value of attribute limit.



3831
3832
3833
# File 'lib/bskyrb/generated_classes.rb', line 3831

def limit
  @limit
end

#resolvedObject

Returns the value of attribute resolved.



3827
3828
3829
# File 'lib/bskyrb/generated_classes.rb', line 3827

def resolved
  @resolved
end

#subjectObject

Returns the value of attribute subject.



3825
3826
3827
# File 'lib/bskyrb/generated_classes.rb', line 3825

def subject
  @subject
end

Class Method Details

.from_hash(hash) ⇒ Object



3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
# File 'lib/bskyrb/generated_classes.rb', line 3835

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

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

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

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

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

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

  instance
end

Instance Method Details

#to_hObject



3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
# File 'lib/bskyrb/generated_classes.rb', line 3852

def to_h
  {

    "subject" => subject,

    "resolved" => resolved,

    "actionType" => actionType,

    "limit" => limit,

    "cursor" => cursor

  }
end