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



2960
2961
2962
# File 'lib/bskyrb/generated_classes.rb', line 2960

def cursor
  @cursor
end

#followsObject

Returns the value of attribute follows.



2962
2963
2964
# File 'lib/bskyrb/generated_classes.rb', line 2962

def follows
  @follows
end

#subjectObject

Returns the value of attribute subject.



2958
2959
2960
# File 'lib/bskyrb/generated_classes.rb', line 2958

def subject
  @subject
end

Class Method Details

.from_hash(hash) ⇒ Object



2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
# File 'lib/bskyrb/generated_classes.rb', line 2964

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

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

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

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

  instance
end

Instance Method Details

#to_hObject



2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
# File 'lib/bskyrb/generated_classes.rb', line 2977

def to_h
  {

    "subject" => subject,

    "cursor" => cursor,

    "follows" => follows

  }
end