Class: NgrokAPI::Models::ReservedDomain

Inherits:
Object
  • Object
show all
Defined in:
lib/ngrokapi/models/reserved_domain.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(client:, result:) ⇒ ReservedDomain

Returns a new instance of ReservedDomain.



23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# File 'lib/ngrokapi/models/reserved_domain.rb', line 23

def initialize(client:, result:)
  @client = client
  @result = result
  @id = @result['id']
  @uri = @result['uri']
  @created_at = @result['created_at']
  @description = @result['description']
  @metadata = @result['metadata']
  @domain = @result['domain']
  @region = @result['region']
  @cname_target = @result['cname_target']
  @http_endpoint_configuration = @result['http_endpoint_configuration']
  @https_endpoint_configuration = @result['https_endpoint_configuration']
  @certificate = @result['certificate']
  @certificate_management_policy = @result['certificate_management_policy']
  @certificate_management_status = @result['certificate_management_status']
  @acme_challenge_cname_target = @result['acme_challenge_cname_target']
end

Instance Attribute Details

#acme_challenge_cname_targetObject (readonly)

Returns the value of attribute acme_challenge_cname_target.



6
7
8
# File 'lib/ngrokapi/models/reserved_domain.rb', line 6

def acme_challenge_cname_target
  @acme_challenge_cname_target
end

#certificateObject (readonly)

Returns the value of attribute certificate.



6
7
8
# File 'lib/ngrokapi/models/reserved_domain.rb', line 6

def certificate
  @certificate
end

#certificate_management_policyObject (readonly)

Returns the value of attribute certificate_management_policy.



6
7
8
# File 'lib/ngrokapi/models/reserved_domain.rb', line 6

def certificate_management_policy
  @certificate_management_policy
end

#certificate_management_statusObject (readonly)

Returns the value of attribute certificate_management_status.



6
7
8
# File 'lib/ngrokapi/models/reserved_domain.rb', line 6

def certificate_management_status
  @certificate_management_status
end

#clientObject (readonly)

Returns the value of attribute client.



6
7
8
# File 'lib/ngrokapi/models/reserved_domain.rb', line 6

def client
  @client
end

#cname_targetObject (readonly)

Returns the value of attribute cname_target.



6
7
8
# File 'lib/ngrokapi/models/reserved_domain.rb', line 6

def cname_target
  @cname_target
end

#created_atObject (readonly)

Returns the value of attribute created_at.



6
7
8
# File 'lib/ngrokapi/models/reserved_domain.rb', line 6

def created_at
  @created_at
end

#descriptionObject (readonly)

Returns the value of attribute description.



6
7
8
# File 'lib/ngrokapi/models/reserved_domain.rb', line 6

def description
  @description
end

#domainObject (readonly)

Returns the value of attribute domain.



6
7
8
# File 'lib/ngrokapi/models/reserved_domain.rb', line 6

def domain
  @domain
end

#http_endpoint_configurationObject (readonly)

Returns the value of attribute http_endpoint_configuration.



6
7
8
# File 'lib/ngrokapi/models/reserved_domain.rb', line 6

def http_endpoint_configuration
  @http_endpoint_configuration
end

#https_endpoint_configurationObject (readonly)

Returns the value of attribute https_endpoint_configuration.



6
7
8
# File 'lib/ngrokapi/models/reserved_domain.rb', line 6

def https_endpoint_configuration
  @https_endpoint_configuration
end

#idObject (readonly)

Returns the value of attribute id.



6
7
8
# File 'lib/ngrokapi/models/reserved_domain.rb', line 6

def id
  @id
end

#metadataObject (readonly)

Returns the value of attribute metadata.



6
7
8
# File 'lib/ngrokapi/models/reserved_domain.rb', line 6

def 
  @metadata
end

#regionObject (readonly)

Returns the value of attribute region.



6
7
8
# File 'lib/ngrokapi/models/reserved_domain.rb', line 6

def region
  @region
end

#resultObject (readonly)

Returns the value of attribute result.



6
7
8
# File 'lib/ngrokapi/models/reserved_domain.rb', line 6

def result
  @result
end

#uriObject (readonly)

Returns the value of attribute uri.



6
7
8
# File 'lib/ngrokapi/models/reserved_domain.rb', line 6

def uri
  @uri
end

Instance Method Details

#==(other) ⇒ Object



42
43
44
# File 'lib/ngrokapi/models/reserved_domain.rb', line 42

def ==(other)
  @result == other.result
end

#deleteObject



54
55
56
57
58
# File 'lib/ngrokapi/models/reserved_domain.rb', line 54

def delete
  @client.delete(
    id: @id
  )
end

#to_sObject



46
47
48
# File 'lib/ngrokapi/models/reserved_domain.rb', line 46

def to_s
  @result.to_s
end