Class: Scalingo::Endpoint::Domains
- Inherits:
-
Collection
- Object
- Collection
- Scalingo::Endpoint::Domains
- Defined in:
- lib/scalingo/endpoint/domains.rb
Instance Attribute Summary
Attributes included from Base
Instance Method Summary collapse
Methods inherited from Collection
#all, #collection_name, #each, #find, #find_by, #resource_class
Methods included from Scalingo::Endpoint
Methods included from ClassMethods
Methods included from Base
Instance Method Details
#create(name, tlscert = nil, tlskey = nil) ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/scalingo/endpoint/domains.rb', line 4 def create(name, tlscert = nil, tlskey = nil) if tlskey post(nil, domain: { name: name, tlscert: tlscert, tlskey: tlskey }) else post(nil, domain: { name: name }) end end |