Class: Hurley::Query::Pair
- Inherits:
-
Struct
- Object
- Struct
- Hurley::Query::Pair
- Defined in:
- lib/hurley/query.rb
Instance Attribute Summary collapse
-
#escaped_key ⇒ Object
Returns the value of attribute escaped_key.
-
#key ⇒ Object
Returns the value of attribute key.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
Instance Attribute Details
#escaped_key ⇒ Object
Returns the value of attribute escaped_key
176 177 178 |
# File 'lib/hurley/query.rb', line 176 def escaped_key @escaped_key end |
#key ⇒ Object
Returns the value of attribute key
176 177 178 |
# File 'lib/hurley/query.rb', line 176 def key @key end |
#value ⇒ Object
Returns the value of attribute value
176 177 178 |
# File 'lib/hurley/query.rb', line 176 def value @value end |
Instance Method Details
#to_s ⇒ Object
177 178 179 180 181 182 183 |
# File 'lib/hurley/query.rb', line 177 def to_s if value "#{escaped_key}=#{Url.escape_path(value)}" else escaped_key end end |