Sha256: 87d85065f95508a902caab0ed3c6a9870cc6fa6a669efd94bfa869f9291fdfc5
Contents?: true
Size: 1.63 KB
Versions: 5
Compression:
Stored size: 1.63 KB
Contents
# frozen_string_literal: true module NgrokAPI module Models class ReservedDomain attr_reader :client, :result, :id, :uri, :created_at, :description, :metadata, :domain, :region, :cname_target, :http_endpoint_configuration, :https_endpoint_configuration, :certificate, :certificate_management_policy, :certificate_management_status, :acme_challenge_cname_target 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 def ==(other) @result == other.result end def to_s @result.to_s end ## # Delete a reserved domain. # # https://ngrok.com/docs/api#api-reserved-domains-delete def delete @client.delete( id: @id ) end end end end
Version data entries
5 entries across 5 versions & 1 rubygems