Class: Watobo::Parameter

Inherits:
Object
  • Object
show all
Defined in:
lib/watobo/core/parameter.rb

Overview

possible locations

- url
- header
- cookie
- data (body)

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#locationObject (readonly)

Returns the value of attribute location.



13
14
15
# File 'lib/watobo/core/parameter.rb', line 13

def location
  @location
end

#nameObject (readonly)

Returns the value of attribute name.



14
15
16
# File 'lib/watobo/core/parameter.rb', line 14

def name
  @name
end

#valueObject

Returns the value of attribute value.



15
16
17
# File 'lib/watobo/core/parameter.rb', line 15

def value
  @value
end