Class: Bskyrb::AppBskyGraphGetfollows::GetFollows::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.



2925
2926
2927
# File 'lib/bskyrb/generated_classes.rb', line 2925

def actor
  @actor
end

#cursorObject

Returns the value of attribute cursor.



2929
2930
2931
# File 'lib/bskyrb/generated_classes.rb', line 2929

def cursor
  @cursor
end

#limitObject

Returns the value of attribute limit.



2927
2928
2929
# File 'lib/bskyrb/generated_classes.rb', line 2927

def limit
  @limit
end

Class Method Details

.from_hash(hash) ⇒ Object



2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
# File 'lib/bskyrb/generated_classes.rb', line 2931

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



2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
# File 'lib/bskyrb/generated_classes.rb', line 2944

def to_h
  {

    "actor" => actor,

    "limit" => limit,

    "cursor" => cursor

  }
end