Class: Bskyrb::AppBskyFeedDefs::PostView

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.



459
460
461
# File 'lib/bskyrb/generated_classes.rb', line 459

def author
  @author
end

#cidObject

Returns the value of attribute cid.



457
458
459
# File 'lib/bskyrb/generated_classes.rb', line 457

def cid
  @cid
end

#embedObject

Returns the value of attribute embed.



463
464
465
# File 'lib/bskyrb/generated_classes.rb', line 463

def embed
  @embed
end

#indexedAtObject

Returns the value of attribute indexedAt.



471
472
473
# File 'lib/bskyrb/generated_classes.rb', line 471

def indexedAt
  @indexedAt
end

#labelsObject

Returns the value of attribute labels.



475
476
477
# File 'lib/bskyrb/generated_classes.rb', line 475

def labels
  @labels
end

#likeCountObject

Returns the value of attribute likeCount.



469
470
471
# File 'lib/bskyrb/generated_classes.rb', line 469

def likeCount
  @likeCount
end

#recordObject

Returns the value of attribute record.



461
462
463
# File 'lib/bskyrb/generated_classes.rb', line 461

def record
  @record
end

#replyCountObject

Returns the value of attribute replyCount.



465
466
467
# File 'lib/bskyrb/generated_classes.rb', line 465

def replyCount
  @replyCount
end

#repostCountObject

Returns the value of attribute repostCount.



467
468
469
# File 'lib/bskyrb/generated_classes.rb', line 467

def repostCount
  @repostCount
end

#uriObject

Returns the value of attribute uri.



455
456
457
# File 'lib/bskyrb/generated_classes.rb', line 455

def uri
  @uri
end

#viewerObject

Returns the value of attribute viewer.



473
474
475
# File 'lib/bskyrb/generated_classes.rb', line 473

def viewer
  @viewer
end

Class Method Details

.from_hash(hash) ⇒ Object



477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
# File 'lib/bskyrb/generated_classes.rb', line 477

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

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

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

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

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

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

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

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

  instance
end