Class: Yun::InstanceType

Inherits:
Object
  • Object
show all
Defined in:
lib/yun/model/instance_type.rb

Class Method Summary collapse

Class Method Details

.parse(readable_type) ⇒ Object



3
4
5
6
7
8
# File 'lib/yun/model/instance_type.rb', line 3

def self.parse readable_type
  case readable_type
    when "micro" then "t1.micro"
    when "small" then "m1.small"
  end
end