Class: Nexus::Invision::Resources::Poll

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

Overview

Member is a User with additional information about their membership.

Class Method Summary collapse

Methods included from ValueObject

#class, #eql?, #serialize

Class Method Details

.from_response(response) ⇒ Object



29
30
31
32
33
# File 'lib/nexus/invision/resources/poll.rb', line 29

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