Class: AuthRocket::Domain

Inherits:
Resource
  • Object
show all
Defined in:
lib/authrocket/domain.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#cert_stateObject (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_stateObject (readonly)

Returns the value of attribute dns_state.



7
8
9
# File 'lib/authrocket/domain.rb', line 7

def dns_state
  @dns_state
end

#domainObject (readonly)

Returns the value of attribute domain.



9
10
11
# File 'lib/authrocket/domain.rb', line 9

def domain
  @domain
end

#domain_typeObject (readonly)

Returns the value of attribute domain_type.



7
8
9
# File 'lib/authrocket/domain.rb', line 7

def domain_type
  @domain_type
end

#flagsObject (readonly)

Returns the value of attribute flags.



7
8
9
# File 'lib/authrocket/domain.rb', line 7

def flags
  @flags
end

#fqdnObject (readonly)

Returns the value of attribute fqdn.



7
8
9
# File 'lib/authrocket/domain.rb', line 7

def fqdn
  @fqdn
end

#stateObject (readonly)

Returns the value of attribute state.



7
8
9
# File 'lib/authrocket/domain.rb', line 7

def state
  @state
end

#subdomainObject (readonly)

Returns the value of attribute subdomain.



8
9
10
# File 'lib/authrocket/domain.rb', line 8

def subdomain
  @subdomain
end

#uriObject (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