Class: Bskyrb::AppBskyGraphGetfollowers::GetFollowers::Input

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

#actorObject

Returns the value of attribute actor.



2855
2856
2857
# File 'lib/bskyrb/generated_classes.rb', line 2855

def actor
  @actor
end

#cursorObject

Returns the value of attribute cursor.



2859
2860
2861
# File 'lib/bskyrb/generated_classes.rb', line 2859

def cursor
  @cursor
end

#limitObject

Returns the value of attribute limit.



2857
2858
2859
# File 'lib/bskyrb/generated_classes.rb', line 2857

def limit
  @limit
end

Class Method Details

.from_hash(hash) ⇒ Object



2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
# File 'lib/bskyrb/generated_classes.rb', line 2861

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

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

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

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

  instance
end

Instance Method Details

#to_hObject



2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
# File 'lib/bskyrb/generated_classes.rb', line 2874

def to_h
  {

    "actor" => actor,

    "limit" => limit,

    "cursor" => cursor

  }
end