Class: WechatTemplateMessage::Result
- Inherits:
-
Object
- Object
- WechatTemplateMessage::Result
- Defined in:
- lib/wechat_template_message/result.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#successful ⇒ Object
readonly
Returns the value of attribute successful.
Instance Method Summary collapse
-
#initialize(successful, body) ⇒ Result
constructor
A new instance of Result.
Constructor Details
#initialize(successful, body) ⇒ Result
Returns a new instance of Result.
5 6 7 8 |
# File 'lib/wechat_template_message/result.rb', line 5 def initialize(successful, body) @successful = successful @body = body end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
3 4 5 |
# File 'lib/wechat_template_message/result.rb', line 3 def body @body end |
#successful ⇒ Object (readonly)
Returns the value of attribute successful.
3 4 5 |
# File 'lib/wechat_template_message/result.rb', line 3 def successful @successful end |