Sha256: e321dfa2b7d2596ec75073c38a040b15892e2ec2417169790a1575e874d76d97
Contents?: true
Size: 1.23 KB
Versions: 11
Compression:
Stored size: 1.23 KB
Contents
module Fog module Linode class DNS class Real # List of domains (you have access to) # # ==== Parameters # * domain_id<~Integer>: limit the list to the domain ID specified # # ==== Returns # * response<~Excon::Response>: # * body<~Array>: # * DATA<~Array> # * 'DOMAINID'<~Interger> # * 'SOA_EMAIL'<~String> # * 'DESCRIPTION'<~String> # * 'TTL_SEC'<~String> # * 'EXPIRE_SEC'<~Integer> # * 'RETRY_SEC'<~Integer> # * 'DOMAIN'<~String> # * 'STATUS'<~Integer> # * 'MASTER_IPS'<~String> # * 'REFRESH_SEC'<~Integer> # * 'TYPE'<~String> def domain_list(domain_id = nil) options = {} if domain_id options.merge!(:domainId => domain_id) end request( :expects => 200, :method => 'GET', :query => { :api_action => 'domain.list' }.merge!(options) ) end end class Mock def domain_list(domain_id = nil) Fog::Mock.not_implemented end end end end end
Version data entries
11 entries across 11 versions & 2 rubygems