Class: DataDomeResponseSuccess
- Inherits:
-
DataDomeResponse
- Object
- DataDomeResponse
- DataDomeResponseSuccess
- Defined in:
- lib/model/api/response.rb
Instance Attribute Summary collapse
-
#ip ⇒ Object
readonly
Returns the value of attribute ip.
-
#location ⇒ Object
readonly
Returns the value of attribute location.
-
#reasons ⇒ Object
readonly
Returns the value of attribute reasons.
Attributes inherited from DataDomeResponse
Instance Method Summary collapse
-
#initialize(action, status, reasons, ip, location) ⇒ DataDomeResponseSuccess
constructor
A new instance of DataDomeResponseSuccess.
- #to_json(options = {}) ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize(action, status, reasons, ip, location) ⇒ DataDomeResponseSuccess
Returns a new instance of DataDomeResponseSuccess.
46 47 48 49 50 51 |
# File 'lib/model/api/response.rb', line 46 def initialize(action, status, reasons, ip, location) super(action, status) @reasons = reasons @ip = ip @location = location end |
Instance Attribute Details
#ip ⇒ Object (readonly)
Returns the value of attribute ip.
44 45 46 |
# File 'lib/model/api/response.rb', line 44 def ip @ip end |
#location ⇒ Object (readonly)
Returns the value of attribute location.
44 45 46 |
# File 'lib/model/api/response.rb', line 44 def location @location end |
#reasons ⇒ Object (readonly)
Returns the value of attribute reasons.
44 45 46 |
# File 'lib/model/api/response.rb', line 44 def reasons @reasons end |
Instance Method Details
#to_json(options = {}) ⇒ Object
57 58 59 60 61 62 63 64 65 |
# File 'lib/model/api/response.rb', line 57 def to_json( = {}) { action: @action, status: @status, reasons: @reasons, ip: @ip, location: @location, }.to_json end |
#to_s ⇒ Object
53 54 55 |
# File 'lib/model/api/response.rb', line 53 def to_s "DataDomeResponseSuccess: action=#{@action}, status=#{@status}, reasons=#{@reasons}, ip=#{@ip}, location=#{@location}" end |