Class: Bskyrb::AppBskyFeedDefs::NotFoundPost

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#notFoundObject

Returns the value of attribute notFound.



615
616
617
# File 'lib/bskyrb/generated_classes.rb', line 615

def notFound
  @notFound
end

#uriObject

Returns the value of attribute uri.



613
614
615
# File 'lib/bskyrb/generated_classes.rb', line 613

def uri
  @uri
end

Class Method Details

.from_hash(hash) ⇒ Object



617
618
619
620
621
622
623
624
625
626
# File 'lib/bskyrb/generated_classes.rb', line 617

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

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

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

  instance
end