Class: Bskyrb::AppBskyGraphGetfollowers::GetFollowers::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.



2890
2891
2892
# File 'lib/bskyrb/generated_classes.rb', line 2890

def cursor
  @cursor
end

#followersObject

Returns the value of attribute followers.



2892
2893
2894
# File 'lib/bskyrb/generated_classes.rb', line 2892

def followers
  @followers
end

#subjectObject

Returns the value of attribute subject.



2888
2889
2890
# File 'lib/bskyrb/generated_classes.rb', line 2888

def subject
  @subject
end

Class Method Details

.from_hash(hash) ⇒ Object



2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
# File 'lib/bskyrb/generated_classes.rb', line 2894

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

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

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

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

  instance
end

Instance Method Details

#to_hObject



2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
# File 'lib/bskyrb/generated_classes.rb', line 2907

def to_h
  {

    "subject" => subject,

    "cursor" => cursor,

    "followers" => followers

  }
end