Class: Watobo::Parameter
- Inherits:
-
Object
- Object
- Watobo::Parameter
- Defined in:
- lib/watobo/core/parameter.rb
Overview
possible locations
- url
- header
- cookie
- data (body)
Direct Known Subclasses
Cookie, CookieParameter, JSONParameter, UrlParameter, WWWFormParameter, XmlParameter
Instance Attribute Summary collapse
-
#location ⇒ Object
readonly
Returns the value of attribute location.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(prefs) ⇒ Parameter
constructor
A new instance of Parameter.
Constructor Details
#initialize(prefs) ⇒ Parameter
Returns a new instance of Parameter.
17 18 19 20 21 22 |
# File 'lib/watobo/core/parameter.rb', line 17 def initialize(prefs) @location = nil @name = prefs[:name] @value = prefs[:value] @prefs = prefs end |
Instance Attribute Details
#location ⇒ Object (readonly)
Returns the value of attribute location.
13 14 15 |
# File 'lib/watobo/core/parameter.rb', line 13 def location @location end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
14 15 16 |
# File 'lib/watobo/core/parameter.rb', line 14 def name @name end |
#value ⇒ Object
Returns the value of attribute value.
15 16 17 |
# File 'lib/watobo/core/parameter.rb', line 15 def value @value end |