Class: Bskyrb::ComAtprotoAdminDefs::ActionReversal

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#createdAtObject

Returns the value of attribute createdAt.



1090
1091
1092
# File 'lib/bskyrb/generated_classes.rb', line 1090

def createdAt
  @createdAt
end

#createdByObject

Returns the value of attribute createdBy.



1088
1089
1090
# File 'lib/bskyrb/generated_classes.rb', line 1088

def createdBy
  @createdBy
end

#reasonObject

Returns the value of attribute reason.



1086
1087
1088
# File 'lib/bskyrb/generated_classes.rb', line 1086

def reason
  @reason
end

Class Method Details

.from_hash(hash) ⇒ Object



1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
# File 'lib/bskyrb/generated_classes.rb', line 1092

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

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

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

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

  instance
end