Class: Oncall::DSL

Inherits:
Object
  • Object
show all
Defined in:
lib/oncall/dsl.rb

Instance Method Summary collapse

Constructor Details

#initialize(file, reporter) ⇒ DSL

Returns a new instance of DSL.



3
4
5
6
7
8
9
# File 'lib/oncall/dsl.rb', line 3

def initialize(file, reporter)
  @reporter = reporter
  @file = file
  @http = nil
  @headers = {}
  @params = {}
end

Instance Method Details

#to_sObject



11
12
13
# File 'lib/oncall/dsl.rb', line 11

def to_s
  @file
end