Class: Bskyrb::AppBskyFeedDefs::FeedViewPost

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#postObject

Returns the value of attribute post.



529
530
531
# File 'lib/bskyrb/generated_classes.rb', line 529

def post
  @post
end

#reasonObject

Returns the value of attribute reason.



533
534
535
# File 'lib/bskyrb/generated_classes.rb', line 533

def reason
  @reason
end

#replyObject

Returns the value of attribute reply.



531
532
533
# File 'lib/bskyrb/generated_classes.rb', line 531

def reply
  @reply
end

Class Method Details

.from_hash(hash) ⇒ Object



535
536
537
538
539
540
541
542
543
544
545
546
# File 'lib/bskyrb/generated_classes.rb', line 535

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

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

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

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

  instance
end