Class: Bskyrb::AppBskyNotificationGetunreadcount::GetUnreadCount::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

#countObject

Returns the value of attribute count.



3366
3367
3368
# File 'lib/bskyrb/generated_classes.rb', line 3366

def count
  @count
end

Class Method Details

.from_hash(hash) ⇒ Object



3368
3369
3370
3371
3372
3373
3374
3375
# File 'lib/bskyrb/generated_classes.rb', line 3368

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

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

  instance
end

Instance Method Details

#to_hObject



3377
3378
3379
3380
3381
3382
3383
# File 'lib/bskyrb/generated_classes.rb', line 3377

def to_h
  {

    "count" => count

  }
end