Class: AuthRocket::Domain
- Inherits:
-
Resource
- Object
- Resource
- AuthRocket::Domain
- Defined in:
- lib/authrocket/domain.rb
Instance Attribute Summary collapse
-
#cert_state ⇒ Object
readonly
Returns the value of attribute cert_state.
-
#dns_state ⇒ Object
readonly
Returns the value of attribute dns_state.
-
#domain ⇒ Object
readonly
Returns the value of attribute domain.
-
#domain_type ⇒ Object
readonly
Returns the value of attribute domain_type.
-
#flags ⇒ Object
readonly
Returns the value of attribute flags.
-
#fqdn ⇒ Object
readonly
Returns the value of attribute fqdn.
-
#state ⇒ Object
readonly
Returns the value of attribute state.
-
#subdomain ⇒ Object
readonly
Returns the value of attribute subdomain.
-
#uri ⇒ Object
readonly
Returns the value of attribute uri.
Instance Method Summary collapse
Instance Attribute Details
#cert_state ⇒ Object (readonly)
Returns the value of attribute cert_state.
7 8 9 |
# File 'lib/authrocket/domain.rb', line 7 def cert_state @cert_state end |
#dns_state ⇒ Object (readonly)
Returns the value of attribute dns_state.
7 8 9 |
# File 'lib/authrocket/domain.rb', line 7 def dns_state @dns_state end |
#domain ⇒ Object (readonly)
Returns the value of attribute domain.
9 10 11 |
# File 'lib/authrocket/domain.rb', line 9 def domain @domain end |
#domain_type ⇒ Object (readonly)
Returns the value of attribute domain_type.
7 8 9 |
# File 'lib/authrocket/domain.rb', line 7 def domain_type @domain_type end |
#flags ⇒ Object (readonly)
Returns the value of attribute flags.
7 8 9 |
# File 'lib/authrocket/domain.rb', line 7 def flags @flags end |
#fqdn ⇒ Object (readonly)
Returns the value of attribute fqdn.
7 8 9 |
# File 'lib/authrocket/domain.rb', line 7 def fqdn @fqdn end |
#state ⇒ Object (readonly)
Returns the value of attribute state.
7 8 9 |
# File 'lib/authrocket/domain.rb', line 7 def state @state end |
#subdomain ⇒ Object (readonly)
Returns the value of attribute subdomain.
8 9 10 |
# File 'lib/authrocket/domain.rb', line 8 def subdomain @subdomain end |
#uri ⇒ Object (readonly)
Returns the value of attribute uri.
7 8 9 |
# File 'lib/authrocket/domain.rb', line 7 def uri @uri end |
Instance Method Details
#verify(attribs = {}) ⇒ Object
11 12 13 14 15 16 |
# File 'lib/authrocket/domain.rb', line 11 def verify(attribs={}) params = parse_request_params(attribs, json_root: json_root).reverse_merge credentials: api_creds parsed, _ = request(:post, resource_path+'/verify', params) load(parsed) errors.empty? ? self : false end |