Class: Nexus::Invision::Resources::EnsureMember

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

Class Method Summary collapse

Methods included from ValueObject

#class, #eql?, #serialize

Class Method Details

.from_response(response) ⇒ Object



20
21
22
23
24
25
# File 'lib/nexus/invision/resources/ensure_member.rb', line 20

def from_response(response)
  EnsureMember.new(
    id: response["id"],
    created: response["created"],
  )
end