Class: Nexus::Invision::Resources::UnreadCount

Inherits:
T::Struct
  • Object
show all
Extended by:
T::Sig
Includes:
ValueObject
Defined in:
lib/nexus/invision/resources/unread_count.rb

Class Method Summary collapse

Methods included from ValueObject

#class, #eql?, #serialize

Class Method Details

.from_response(response) ⇒ Object



19
20
21
22
23
# File 'lib/nexus/invision/resources/unread_count.rb', line 19

def from_response(response)
  UnreadCount.new(
    count: response["count"],
  )
end