Class: Bskyrb::ComAtprotoModerationCreatereport::CreateReport::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

#createdAtObject

Returns the value of attribute createdAt.



4463
4464
4465
# File 'lib/bskyrb/generated_classes.rb', line 4463

def createdAt
  @createdAt
end

#idObject

Returns the value of attribute id.



4453
4454
4455
# File 'lib/bskyrb/generated_classes.rb', line 4453

def id
  @id
end

#reasonObject

Returns the value of attribute reason.



4457
4458
4459
# File 'lib/bskyrb/generated_classes.rb', line 4457

def reason
  @reason
end

#reasonTypeObject

Returns the value of attribute reasonType.



4455
4456
4457
# File 'lib/bskyrb/generated_classes.rb', line 4455

def reasonType
  @reasonType
end

#reportedByObject

Returns the value of attribute reportedBy.



4461
4462
4463
# File 'lib/bskyrb/generated_classes.rb', line 4461

def reportedBy
  @reportedBy
end

#subjectObject

Returns the value of attribute subject.



4459
4460
4461
# File 'lib/bskyrb/generated_classes.rb', line 4459

def subject
  @subject
end

Class Method Details

.from_hash(hash) ⇒ Object



4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
# File 'lib/bskyrb/generated_classes.rb', line 4465

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

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

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

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

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

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

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

  instance
end

Instance Method Details

#to_hObject



4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
# File 'lib/bskyrb/generated_classes.rb', line 4484

def to_h
  {

    "id" => id,

    "reasonType" => reasonType,

    "reason" => reason,

    "subject" => subject,

    "reportedBy" => reportedBy,

    "createdAt" => createdAt

  }
end