Class: Bskyrb::ComAtprotoAdminDefs::ActionView

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#actionObject

Returns the value of attribute action.



959
960
961
# File 'lib/bskyrb/generated_classes.rb', line 959

def action
  @action
end

#createdAtObject

Returns the value of attribute createdAt.



973
974
975
# File 'lib/bskyrb/generated_classes.rb', line 973

def createdAt
  @createdAt
end

#createdByObject

Returns the value of attribute createdBy.



971
972
973
# File 'lib/bskyrb/generated_classes.rb', line 971

def createdBy
  @createdBy
end

#createLabelValsObject

Returns the value of attribute createLabelVals.



965
966
967
# File 'lib/bskyrb/generated_classes.rb', line 965

def createLabelVals
  @createLabelVals
end

#idObject

Returns the value of attribute id.



957
958
959
# File 'lib/bskyrb/generated_classes.rb', line 957

def id
  @id
end

#negateLabelValsObject

Returns the value of attribute negateLabelVals.



967
968
969
# File 'lib/bskyrb/generated_classes.rb', line 967

def negateLabelVals
  @negateLabelVals
end

#reasonObject

Returns the value of attribute reason.



969
970
971
# File 'lib/bskyrb/generated_classes.rb', line 969

def reason
  @reason
end

#resolvedReportIdsObject

Returns the value of attribute resolvedReportIds.



977
978
979
# File 'lib/bskyrb/generated_classes.rb', line 977

def resolvedReportIds
  @resolvedReportIds
end

#reversalObject

Returns the value of attribute reversal.



975
976
977
# File 'lib/bskyrb/generated_classes.rb', line 975

def reversal
  @reversal
end

#subjectObject

Returns the value of attribute subject.



961
962
963
# File 'lib/bskyrb/generated_classes.rb', line 961

def subject
  @subject
end

#subjectBlobCidsObject

Returns the value of attribute subjectBlobCids.



963
964
965
# File 'lib/bskyrb/generated_classes.rb', line 963

def subjectBlobCids
  @subjectBlobCids
end

Class Method Details

.from_hash(hash) ⇒ Object



979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
# File 'lib/bskyrb/generated_classes.rb', line 979

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

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

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

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

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

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

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

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

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

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

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

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

  instance
end