Class: Bskyrb::AppBskyFeedGetpostthread::GetPostThread::Input
- Inherits:
-
Object
- Object
- Bskyrb::AppBskyFeedGetpostthread::GetPostThread::Input
- Defined in:
- lib/bskyrb/generated_classes.rb
Instance Attribute Summary collapse
-
#depth ⇒ Object
Returns the value of attribute depth.
-
#uri ⇒ Object
Returns the value of attribute uri.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#depth ⇒ Object
Returns the value of attribute depth.
2555 2556 2557 |
# File 'lib/bskyrb/generated_classes.rb', line 2555 def depth @depth end |
#uri ⇒ Object
Returns the value of attribute uri.
2553 2554 2555 |
# File 'lib/bskyrb/generated_classes.rb', line 2553 def uri @uri end |
Class Method Details
.from_hash(hash) ⇒ Object
2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 |
# File 'lib/bskyrb/generated_classes.rb', line 2557 def self.from_hash(hash) # httparty-returned string-keyed hash instance = new instance.send(:uri=, hash["uri"]) instance.send(:depth=, hash["depth"]) instance end |
Instance Method Details
#to_h ⇒ Object
2568 2569 2570 2571 2572 2573 2574 2575 2576 |
# File 'lib/bskyrb/generated_classes.rb', line 2568 def to_h { "uri" => uri, "depth" => depth } end |