Class: Fountain::Api::Stages

Inherits:
Object
  • Object
show all
Extended by:
RequestHelper
Defined in:
lib/fountain/api/stages.rb

Overview

Fountain Stage Management API

Constant Summary

Constants included from RequestHelper

RequestHelper::DEFAULT_REQUEST_OPTIONS

Class Method Summary collapse

Methods included from RequestHelper

request, request_json

Class Method Details

.get(stage_id) ⇒ Fountain::Stage

Get Stage Info

Parameters:

  • stage_id (String)

    ID of the Fountain stage

Returns:



15
16
17
18
# File 'lib/fountain/api/stages.rb', line 15

def self.get(stage_id)
  response = request_json("/v2/stages/#{stage_id}")
  Fountain::Stage.new response
end