Class: Uncoil::Response

Inherits:
Object
  • Object
show all
Defined in:
lib/uncoil/response.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#errorObject

Returns the value of attribute error.



3
4
5
# File 'lib/uncoil/response.rb', line 3

def error
  @error
end

#long_urlObject

Returns the value of attribute long_url.



3
4
5
# File 'lib/uncoil/response.rb', line 3

def long_url
  @long_url
end

#short_urlObject

Returns the value of attribute short_url.



3
4
5
# File 'lib/uncoil/response.rb', line 3

def short_url
  @short_url
end