Class: Umwelt::History::Get

Inherits:
Abstract::Request show all
Defined in:
lib/umwelt/history/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(project_id) ⇒ Object



7
8
9
10
11
# File 'lib/umwelt/history/get.rb', line 7

def call(project_id)
  request = get(path: "histories/#{project_id}")

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