Class: Porkbun::Abstract

Inherits:
Object
  • Object
show all
Defined in:
lib/porkbun.rb

Direct Known Subclasses

DNS

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#messageObject

Returns the value of attribute message.



22
23
24
# File 'lib/porkbun.rb', line 22

def message
  @message
end

#statusObject

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

Returns:

  • (Boolean)


24
25
26
# File 'lib/porkbun.rb', line 24

def success?
  @status == 'SUCCESS'
end