mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
make options hash consistent, fix params docs
This commit is contained in:
parent
b2ab9d4b9d
commit
f343f03f6f
1 changed files with 8 additions and 7 deletions
|
@ -70,20 +70,21 @@ module Fog
|
||||||
# List SimpleDB domains
|
# List SimpleDB domains
|
||||||
#
|
#
|
||||||
# ==== Parameters
|
# ==== Parameters
|
||||||
# max_number_of_domains<~Integer>:: Maximum number of domains to return
|
# options<~Hash>:: options, defaults to {}
|
||||||
# between 1 and 100, defaults to 100.
|
# :max_number_of_domains<~Integer>:: number of domains to return
|
||||||
# next_token<~Integer>:: Offset token to start list, defaults to nil.
|
# between 1 and 100, defaults to 100
|
||||||
|
# :next_token<~String>:: Offset token to start listing, defaults to nil
|
||||||
#
|
#
|
||||||
# ==== Returns
|
# ==== Returns
|
||||||
# Hash::
|
# Hash::
|
||||||
# :request_id and :box_usage
|
# :request_id and :box_usage
|
||||||
# :domains array of domain names.
|
# :domains array of domain names.
|
||||||
# :next_token offset to start with if there are are more domains to list
|
# :next_token offset to start with if there are are more domains to list
|
||||||
def list_domains(max_number_of_domains = nil, next_token = nil)
|
def list_domains(options = {})
|
||||||
request({
|
request({
|
||||||
'Action' => 'ListDomains',
|
'Action' => 'ListDomains',
|
||||||
'MaxNumberOfDomains' => max_number_of_domains,
|
'MaxNumberOfDomains' => options[:max_number_of_domains],
|
||||||
'NextToken' => next_token
|
'NextToken' => options[:next_token]
|
||||||
}, Fog::Parsers::AWS::SimpleDB::ListDomainsParser.new(@nil_string))
|
}, Fog::Parsers::AWS::SimpleDB::ListDomainsParser.new(@nil_string))
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -205,7 +206,7 @@ module Fog
|
||||||
#
|
#
|
||||||
# ==== Parameters
|
# ==== Parameters
|
||||||
# select_expression<~String>:: Expression to query domain with.
|
# select_expression<~String>:: Expression to query domain with.
|
||||||
# next_token<~Integer>:: Offset token to start list, defaults to nil.
|
# next_token<~String>:: Offset token to start list, defaults to nil.
|
||||||
#
|
#
|
||||||
# ==== Returns
|
# ==== Returns
|
||||||
# Hash::
|
# Hash::
|
||||||
|
|
Loading…
Reference in a new issue