Class: Bskyrb::ComAtprotoAdminDefs::ModerationDetail

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#actionsObject

Returns the value of attribute actions.



1440
1441
1442
# File 'lib/bskyrb/generated_classes.rb', line 1440

def actions
  @actions
end

#currentActionObject

Returns the value of attribute currentAction.



1438
1439
1440
# File 'lib/bskyrb/generated_classes.rb', line 1438

def currentAction
  @currentAction
end

#reportsObject

Returns the value of attribute reports.



1442
1443
1444
# File 'lib/bskyrb/generated_classes.rb', line 1442

def reports
  @reports
end

Class Method Details

.from_hash(hash) ⇒ Object



1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
# File 'lib/bskyrb/generated_classes.rb', line 1444

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

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

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

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

  instance
end