readme, cleanup/correct request example
This commit is contained in:
parent
6276a8058a
commit
c540fba1fa
11
README.rdoc
11
README.rdoc
|
@ -80,14 +80,11 @@ Requests allow you to dive deeper when the models just can't cut it.
|
||||||
For instance, ec2 provides methods related to reserved instances that don't have any models (yet anyway).
|
For instance, ec2 provides methods related to reserved instances that don't have any models (yet anyway).
|
||||||
You can get a description of your reserved instances like this:
|
You can get a description of your reserved instances like this:
|
||||||
|
|
||||||
connection = Fog::AWS::EC2.new(
|
$ fog
|
||||||
:aws_access_key_id => id,
|
>> AWS[:ec2].describe_reserved_instances
|
||||||
:aws_secret_access_key => key
|
#<Excon::Response [...]>
|
||||||
)
|
|
||||||
|
|
||||||
connection.describe_reserved_instances
|
It will return an excon response, which has headers and body methods. Both give nice ruby hash representations of the result.
|
||||||
|
|
||||||
It will return a nice ruby hash that you can get whatever data you might need from.
|
|
||||||
|
|
||||||
== Go forth and conquer
|
== Go forth and conquer
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue