Class: Imgwire::Resources::CustomDomainResource

Inherits:
BaseResource
  • Object
show all
Defined in:
lib/imgwire/resources/custom_domain_resource.rb

Instance Method Summary collapse

Constructor Details

#initialize(api_client) ⇒ CustomDomainResource

Returns a new instance of CustomDomainResource.



6
7
8
9
# File 'lib/imgwire/resources/custom_domain_resource.rb', line 6

def initialize(api_client)
  super
  @api = ImgwireGenerated::CustomDomainApi.new(api_client)
end

Instance Method Details

#create(payload) ⇒ Object



11
12
13
14
15
# File 'lib/imgwire/resources/custom_domain_resource.rb', line 11

def create(payload)
  @api.custom_domain_create(
    coerce_model(ImgwireGenerated::CustomDomainCreateSchema, payload)
  )
end

#deleteObject



17
18
19
# File 'lib/imgwire/resources/custom_domain_resource.rb', line 17

def delete
  @api.custom_domain_delete
end

#retrieveObject



21
22
23
# File 'lib/imgwire/resources/custom_domain_resource.rb', line 21

def retrieve
  @api.custom_domain_retrieve
end

#test_connectionObject



25
26
27
# File 'lib/imgwire/resources/custom_domain_resource.rb', line 25

def test_connection
  @api.custom_domain_test_connection
end