Method: Fog::Compute::AWS::Flavors#get

Defined in:
lib/rackspace-fog/aws/models/compute/flavors.rb

#get(flavor_id) ⇒ Object

Used to retrieve a flavor flavor_id is required to get the associated flavor information. flavors available currently: ‘t1.micro’, ‘m1.small’, ‘m1.large’, ‘m1.xlarge’, ‘c1.medium’, ‘c1.xlarge’, ‘m2.xlarge’, ‘m2.2xlarge’, ‘m2.4xlarge’, ‘cc1.4xlarge’, ‘cc2.8xlarge’, ‘cg1.4xlarge’

You can run the following command to get the details: AWS.flavors.get(“t1.micro”)

Returns

>> AWS.flavors.get(“t1.micro”) <Fog::AWS::Compute::Flavor

id="t1.micro",
bits=0,
cores=2,
disk=0,
name="Micro Instance",
ram=613

>



168
169
170
# File 'lib/rackspace-fog/aws/models/compute/flavors.rb', line 168

def get(flavor_id)
  self.class.new(:connection => connection).all.detect {|flavor| flavor.id == flavor_id}
end