Class: Umwelt::Episode::Get

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



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

def call(phase_id)
  request = get(path: "episodes/#{phase_id}")

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