Class: Nexus::Invision::Resources::Forum

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

Class Method Summary collapse

Methods included from ValueObject

#class, #eql?, #serialize

Class Method Details

.from_response(response) ⇒ Object



27
28
29
30
31
32
33
34
35
36
37
38
# File 'lib/nexus/invision/resources/forum.rb', line 27

def from_response(response)
  Forum.new(
    id: response["id"],
    name: response["name"],
    path: response["path"],
    type: response["type"],
    topics: response["topics"],
    url: response["url"],
    parentId: response["parentId"],
    permissions: response["permissions"],
  )
end