Method: Bskyrb::AppBskyNotificationGetunreadcount::GetUnreadCount::Output.from_hash

Defined in:
lib/bskyrb/generated_classes.rb

.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