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.
22 23 24 |
# File 'lib/porkbun.rb', line 22 def @message end |
#status ⇒ Object
Returns the value of attribute status.
22 23 24 |
# File 'lib/porkbun.rb', line 22 def status @status end |
Instance Method Details
#parse_response(res) ⇒ Object
28 29 30 31 |
# File 'lib/porkbun.rb', line 28 def parse_response(res) @message = res[:message] @status = res[:status] end |
#success? ⇒ Boolean
24 25 26 |
# File 'lib/porkbun.rb', line 24 def success? @status == 'SUCCESS' end |