Class: Shift::Builder::UrlHandler

Inherits:
Object
  • Object
show all
Defined in:
lib/shift-lang/builder/url_handler.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(url, method) ⇒ UrlHandler

Returns a new instance of UrlHandler.



6
7
8
9
10
# File 'lib/shift-lang/builder/url_handler.rb', line 6

def initialize(url, method)
  @url = url
  @method = method
  @handler = []
end

Instance Attribute Details

#handlerObject

Returns the value of attribute handler.



4
5
6
# File 'lib/shift-lang/builder/url_handler.rb', line 4

def handler
  @handler
end

#methodObject

Returns the value of attribute method.



4
5
6
# File 'lib/shift-lang/builder/url_handler.rb', line 4

def method
  @method
end

#urlObject

Returns the value of attribute url.



4
5
6
# File 'lib/shift-lang/builder/url_handler.rb', line 4

def url
  @url
end

Instance Method Details

#add_statement(statement) ⇒ Object



12
13
14
# File 'lib/shift-lang/builder/url_handler.rb', line 12

def add_statement(statement)
  handler.push statement
end