Class: Bskyrb::ComAtprotoAdminDefs::BlobView

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#cidObject

Returns the value of attribute cid.



1461
1462
1463
# File 'lib/bskyrb/generated_classes.rb', line 1461

def cid
  @cid
end

#createdAtObject

Returns the value of attribute createdAt.



1467
1468
1469
# File 'lib/bskyrb/generated_classes.rb', line 1467

def createdAt
  @createdAt
end

#detailsObject

Returns the value of attribute details.



1469
1470
1471
# File 'lib/bskyrb/generated_classes.rb', line 1469

def details
  @details
end

#mimeTypeObject

Returns the value of attribute mimeType.



1463
1464
1465
# File 'lib/bskyrb/generated_classes.rb', line 1463

def mimeType
  @mimeType
end

#moderationObject

Returns the value of attribute moderation.



1471
1472
1473
# File 'lib/bskyrb/generated_classes.rb', line 1471

def moderation
  @moderation
end

#sizeObject

Returns the value of attribute size.



1465
1466
1467
# File 'lib/bskyrb/generated_classes.rb', line 1465

def size
  @size
end

Class Method Details

.from_hash(hash) ⇒ Object



1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
# File 'lib/bskyrb/generated_classes.rb', line 1473

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

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

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

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

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

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

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

  instance
end