Class: Bskyrb::AppBskyFeedDefs::BlockedPost

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#blockedObject

Returns the value of attribute blocked.



634
635
636
# File 'lib/bskyrb/generated_classes.rb', line 634

def blocked
  @blocked
end

#uriObject

Returns the value of attribute uri.



632
633
634
# File 'lib/bskyrb/generated_classes.rb', line 632

def uri
  @uri
end

Class Method Details

.from_hash(hash) ⇒ Object



636
637
638
639
640
641
642
643
644
645
# File 'lib/bskyrb/generated_classes.rb', line 636

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

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

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

  instance
end