Class: Nexus::Invision::Resources::Post

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

Class Method Summary collapse

Methods included from ValueObject

#class, #eql?, #serialize

Class Method Details

.from_response(response) ⇒ Object



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

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