Class: Umwelt::Project::Get
- Inherits:
-
Abstract::Request
- Object
- Abstract::Interactor
- Abstract::Request
- Umwelt::Project::Get
- 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
-
#call(query) ⇒ Object
query = { project_name: ‘genry’, user_name: ‘ford’ }.
Methods inherited from Abstract::Request
#check, #get, #options, #parse, #struct
Methods inherited from Abstract::Interactor
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 |