Class: PlatformAPI::Domain
- Inherits:
-
Object
- Object
- PlatformAPI::Domain
- Defined in:
- lib/platform-api/client.rb
Overview
Domains define what web routes should be routed to an app on Heroku.
Instance Method Summary collapse
-
#create(app_id_or_app_name, body) ⇒ Object
Create a new domain.
-
#delete(app_id_or_app_name, domain_id_or_domain_hostname) ⇒ Object
Delete an existing domain.
-
#info(app_id_or_app_name, domain_id_or_domain_hostname) ⇒ Object
Info for existing domain.
-
#initialize(client) ⇒ Domain
constructor
A new instance of Domain.
-
#list(app_id_or_app_name) ⇒ Object
List existing domains.
Constructor Details
#initialize(client) ⇒ Domain
Returns a new instance of Domain.
1071 1072 1073 |
# File 'lib/platform-api/client.rb', line 1071 def initialize(client) @client = client end |
Instance Method Details
#create(app_id_or_app_name, body) ⇒ Object
Create a new domain.
1079 1080 1081 |
# File 'lib/platform-api/client.rb', line 1079 def create(app_id_or_app_name, body) @client.domain.create(app_id_or_app_name, body) end |
#delete(app_id_or_app_name, domain_id_or_domain_hostname) ⇒ Object
Delete an existing domain
1087 1088 1089 |
# File 'lib/platform-api/client.rb', line 1087 def delete(app_id_or_app_name, domain_id_or_domain_hostname) @client.domain.delete(app_id_or_app_name, domain_id_or_domain_hostname) end |
#info(app_id_or_app_name, domain_id_or_domain_hostname) ⇒ Object
Info for existing domain.
1095 1096 1097 |
# File 'lib/platform-api/client.rb', line 1095 def info(app_id_or_app_name, domain_id_or_domain_hostname) @client.domain.info(app_id_or_app_name, domain_id_or_domain_hostname) end |
#list(app_id_or_app_name) ⇒ Object
List existing domains.
1102 1103 1104 |
# File 'lib/platform-api/client.rb', line 1102 def list(app_id_or_app_name) @client.domain.list(app_id_or_app_name) end |