Class: Rox::Core::Analytics::Response

Inherits:
Object
  • Object
show all
Defined in:
lib/rox/core/analytics/response.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(status = 200, error = nil) ⇒ Response

public: Simple class to wrap responses from the API



10
11
12
13
# File 'lib/rox/core/analytics/response.rb', line 10

def initialize(status = 200, error = nil)
  @status = status
  @error = error
end

Instance Attribute Details

#errorObject (readonly)

Returns the value of attribute error.



5
6
7
# File 'lib/rox/core/analytics/response.rb', line 5

def error
  @error
end

#statusObject (readonly)

Returns the value of attribute status.



5
6
7
# File 'lib/rox/core/analytics/response.rb', line 5

def status
  @status
end