Class: Bskyrb::AppBskyEmbedRecord::ViewRecord

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#authorObject

Returns the value of attribute author.



371
372
373
# File 'lib/bskyrb/generated_classes.rb', line 371

def author
  @author
end

#cidObject

Returns the value of attribute cid.



369
370
371
# File 'lib/bskyrb/generated_classes.rb', line 369

def cid
  @cid
end

#embedsObject

Returns the value of attribute embeds.



377
378
379
# File 'lib/bskyrb/generated_classes.rb', line 377

def embeds
  @embeds
end

#indexedAtObject

Returns the value of attribute indexedAt.



379
380
381
# File 'lib/bskyrb/generated_classes.rb', line 379

def indexedAt
  @indexedAt
end

#labelsObject

Returns the value of attribute labels.



375
376
377
# File 'lib/bskyrb/generated_classes.rb', line 375

def labels
  @labels
end

#uriObject

Returns the value of attribute uri.



367
368
369
# File 'lib/bskyrb/generated_classes.rb', line 367

def uri
  @uri
end

#valueObject

Returns the value of attribute value.



373
374
375
# File 'lib/bskyrb/generated_classes.rb', line 373

def value
  @value
end

Class Method Details

.from_hash(hash) ⇒ Object



381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
# File 'lib/bskyrb/generated_classes.rb', line 381

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

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

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

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

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

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

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

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

  instance
end