Class: Bskyrb::ComAtprotoAdminDefs::RecordView

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#blobCidsObject

Returns the value of attribute blobCids.



1347
1348
1349
# File 'lib/bskyrb/generated_classes.rb', line 1347

def blobCids
  @blobCids
end

#cidObject

Returns the value of attribute cid.



1343
1344
1345
# File 'lib/bskyrb/generated_classes.rb', line 1343

def cid
  @cid
end

#indexedAtObject

Returns the value of attribute indexedAt.



1349
1350
1351
# File 'lib/bskyrb/generated_classes.rb', line 1349

def indexedAt
  @indexedAt
end

#moderationObject

Returns the value of attribute moderation.



1351
1352
1353
# File 'lib/bskyrb/generated_classes.rb', line 1351

def moderation
  @moderation
end

#repoObject

Returns the value of attribute repo.



1353
1354
1355
# File 'lib/bskyrb/generated_classes.rb', line 1353

def repo
  @repo
end

#uriObject

Returns the value of attribute uri.



1341
1342
1343
# File 'lib/bskyrb/generated_classes.rb', line 1341

def uri
  @uri
end

#valueObject

Returns the value of attribute value.



1345
1346
1347
# File 'lib/bskyrb/generated_classes.rb', line 1345

def value
  @value
end

Class Method Details

.from_hash(hash) ⇒ Object



1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
# File 'lib/bskyrb/generated_classes.rb', line 1355

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(:blobCids=, hash["blobCids"])

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

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

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

  instance
end