Class: Bskyrb::AppBskyFeedGettimeline::GetTimeline::Output

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#cursorObject

Returns the value of attribute cursor.



2766
2767
2768
# File 'lib/bskyrb/generated_classes.rb', line 2766

def cursor
  @cursor
end

#feedObject

Returns the value of attribute feed.



2768
2769
2770
# File 'lib/bskyrb/generated_classes.rb', line 2768

def feed
  @feed
end

Class Method Details

.from_hash(hash) ⇒ Object



2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
# File 'lib/bskyrb/generated_classes.rb', line 2770

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

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

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

  instance
end

Instance Method Details

#to_hObject



2781
2782
2783
2784
2785
2786
2787
2788
2789
# File 'lib/bskyrb/generated_classes.rb', line 2781

def to_h
  {

    "cursor" => cursor,

    "feed" => feed

  }
end