Class: CampaignMonitor::Result
- Inherits:
-
Object
- Object
- CampaignMonitor::Result
- Defined in:
- lib/campaign_monitor.rb
Overview
Encapsulates the response received from the CampaignMonitor webservice.
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
Instance Method Summary collapse
-
#initialize(message, code) ⇒ Result
constructor
A new instance of Result.
Constructor Details
#initialize(message, code) ⇒ Result
Returns a new instance of Result.
506 507 508 509 |
# File 'lib/campaign_monitor.rb', line 506 def initialize(, code) = @code = code end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
504 505 506 |
# File 'lib/campaign_monitor.rb', line 504 def code @code end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
504 505 506 |
# File 'lib/campaign_monitor.rb', line 504 def end |