Class: Imgwire::Resources::CustomDomainResource
- Inherits:
-
BaseResource
- Object
- BaseResource
- Imgwire::Resources::CustomDomainResource
- Defined in:
- lib/imgwire/resources/custom_domain_resource.rb
Instance Method Summary collapse
- #create(payload) ⇒ Object
- #delete ⇒ Object
-
#initialize(api_client) ⇒ CustomDomainResource
constructor
A new instance of CustomDomainResource.
- #retrieve ⇒ Object
- #test_connection ⇒ Object
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 |
#delete ⇒ Object
17 18 19 |
# File 'lib/imgwire/resources/custom_domain_resource.rb', line 17 def delete @api.custom_domain_delete end |
#retrieve ⇒ Object
21 22 23 |
# File 'lib/imgwire/resources/custom_domain_resource.rb', line 21 def retrieve @api.custom_domain_retrieve end |
#test_connection ⇒ Object
25 26 27 |
# File 'lib/imgwire/resources/custom_domain_resource.rb', line 25 def test_connection @api.custom_domain_test_connection end |