Class: Bskyrb::AppBskyNotificationListnotifications::ListNotifications::Output
- Inherits:
-
Object
- Object
- Bskyrb::AppBskyNotificationListnotifications::ListNotifications::Output
- Defined in:
- lib/bskyrb/generated_classes.rb
Instance Attribute Summary collapse
-
#cursor ⇒ Object
Returns the value of attribute cursor.
-
#notifications ⇒ Object
Returns the value of attribute notifications.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#cursor ⇒ Object
Returns the value of attribute cursor.
3424 3425 3426 |
# File 'lib/bskyrb/generated_classes.rb', line 3424 def cursor @cursor end |
#notifications ⇒ Object
Returns the value of attribute notifications.
3426 3427 3428 |
# File 'lib/bskyrb/generated_classes.rb', line 3426 def notifications @notifications end |
Class Method Details
.from_hash(hash) ⇒ Object
3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 |
# File 'lib/bskyrb/generated_classes.rb', line 3428 def self.from_hash(hash) # httparty-returned string-keyed hash instance = new instance.send(:cursor=, hash["cursor"]) instance.send(:notifications=, hash["notifications"]) instance end |
Instance Method Details
#to_h ⇒ Object
3439 3440 3441 3442 3443 3444 3445 3446 3447 |
# File 'lib/bskyrb/generated_classes.rb', line 3439 def to_h { "cursor" => cursor, "notifications" => notifications } end |