Class: Uncoil::Response
- Inherits:
-
Object
- Object
- Uncoil::Response
- Defined in:
- lib/uncoil/response.rb
Instance Attribute Summary collapse
-
#error ⇒ Object
Returns the value of attribute error.
-
#long_url ⇒ Object
Returns the value of attribute long_url.
-
#short_url ⇒ Object
Returns the value of attribute short_url.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ Response
constructor
A new instance of Response.
Constructor Details
#initialize(attributes = {}) ⇒ Response
Returns a new instance of Response.
5 6 7 8 9 |
# File 'lib/uncoil/response.rb', line 5 def initialize(attributes = {}) attributes.each do |k, v| self.send("#{k.to_s}=", v) end end |
Instance Attribute Details
#error ⇒ Object
Returns the value of attribute error.
3 4 5 |
# File 'lib/uncoil/response.rb', line 3 def error @error end |
#long_url ⇒ Object
Returns the value of attribute long_url.
3 4 5 |
# File 'lib/uncoil/response.rb', line 3 def long_url @long_url end |
#short_url ⇒ Object
Returns the value of attribute short_url.
3 4 5 |
# File 'lib/uncoil/response.rb', line 3 def short_url @short_url end |