Class: HostradoAPI::V1::Domains
- Inherits:
-
Object
- Object
- HostradoAPI::V1::Domains
- Defined in:
- lib/v1/domains.rb
Instance Method Summary collapse
-
#initialize(connection) ⇒ Domains
constructor
A new instance of Domains.
- #list ⇒ Object
Constructor Details
#initialize(connection) ⇒ Domains
Returns a new instance of Domains.
4 5 6 |
# File 'lib/v1/domains.rb', line 4 def initialize(connection) @connection = connection end |
Instance Method Details
#list ⇒ Object
8 9 10 11 |
# File 'lib/v1/domains.rb', line 8 def list domain_list, _ = @connection.send_request(:get, '/domains') domain_list['domains'].map { |domain| HostradoAPI::Domain.new(domain) } end |