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.



19
20
21
# File 'lib/porkbun.rb', line 19

def message
  @message
end

#statusObject

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

Returns:

  • (Boolean)


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

def success?
  @status == 'SUCCESS'
end