Class: Bskyrb::ComAtprotoAdminDefs::RecordViewDetail

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#blobsObject

Returns the value of attribute blobs.



1386
1387
1388
# File 'lib/bskyrb/generated_classes.rb', line 1386

def blobs
  @blobs
end

#cidObject

Returns the value of attribute cid.



1382
1383
1384
# File 'lib/bskyrb/generated_classes.rb', line 1382

def cid
  @cid
end

#indexedAtObject

Returns the value of attribute indexedAt.



1390
1391
1392
# File 'lib/bskyrb/generated_classes.rb', line 1390

def indexedAt
  @indexedAt
end

#labelsObject

Returns the value of attribute labels.



1388
1389
1390
# File 'lib/bskyrb/generated_classes.rb', line 1388

def labels
  @labels
end

#moderationObject

Returns the value of attribute moderation.



1392
1393
1394
# File 'lib/bskyrb/generated_classes.rb', line 1392

def moderation
  @moderation
end

#repoObject

Returns the value of attribute repo.



1394
1395
1396
# File 'lib/bskyrb/generated_classes.rb', line 1394

def repo
  @repo
end

#uriObject

Returns the value of attribute uri.



1380
1381
1382
# File 'lib/bskyrb/generated_classes.rb', line 1380

def uri
  @uri
end

#valueObject

Returns the value of attribute value.



1384
1385
1386
# File 'lib/bskyrb/generated_classes.rb', line 1384

def value
  @value
end

Class Method Details

.from_hash(hash) ⇒ Object



1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
# File 'lib/bskyrb/generated_classes.rb', line 1396

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

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

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

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

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

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

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

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

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

  instance
end