Class: Porkbun::Abstract
- Inherits:
-
Object
- Object
- Porkbun::Abstract
- Defined in:
- lib/porkbun.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#message ⇒ Object
Returns the value of attribute message.
-
#status ⇒ Object
Returns the value of attribute status.
Instance Method Summary collapse
Instance Attribute Details
#message ⇒ Object
Returns the value of attribute message.
19 20 21 |
# File 'lib/porkbun.rb', line 19 def @message end |
#status ⇒ Object
Returns the value of attribute status.
19 20 21 |
# File 'lib/porkbun.rb', line 19 def status @status end |
Instance Method Details
#parse_response(res) ⇒ Object
25 26 27 28 |
# File 'lib/porkbun.rb', line 25 def parse_response(res) @message = res[:message] @status = res[:status] end |
#success? ⇒ Boolean
21 22 23 |
# File 'lib/porkbun.rb', line 21 def success? @status == 'SUCCESS' end |