Class: Umwelt::Project::Get

Inherits:
Abstract::Request show all
Defined in:
lib/umwelt/project/get.rb

Constant Summary

Constants inherited from Abstract::Request

Abstract::Request::BASE_URL, Abstract::Request::HEADERS

Instance Method Summary collapse

Methods inherited from Abstract::Request

#check, #get, #options, #parse, #struct

Methods inherited from Abstract::Interactor

#prove

Instance Method Details

#call(query) ⇒ Object

query =

project_name: 'genry',
user_name: 'ford'



12
13
14
15
16
17
18
19
# File 'lib/umwelt/project/get.rb', line 12

def call(query)
  request = get(
    path: 'projects/find',
    params: { query: query }
  )

  @project = struct(parse(request), Mapper.new)
end