Class: Shift::Builder::UrlHandler
- Inherits:
-
Object
- Object
- Shift::Builder::UrlHandler
- Defined in:
- lib/shift-lang/builder/url_handler.rb
Instance Attribute Summary collapse
-
#handler ⇒ Object
Returns the value of attribute handler.
-
#method ⇒ Object
Returns the value of attribute method.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
- #add_statement(statement) ⇒ Object
-
#initialize(url, method) ⇒ UrlHandler
constructor
A new instance of UrlHandler.
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
#handler ⇒ Object
Returns the value of attribute handler.
4 5 6 |
# File 'lib/shift-lang/builder/url_handler.rb', line 4 def handler @handler end |
#method ⇒ Object
Returns the value of attribute method.
4 5 6 |
# File 'lib/shift-lang/builder/url_handler.rb', line 4 def method @method end |
#url ⇒ Object
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 |