ogle 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/ogle/image.rb +4 -2
- data/lib/ogle/version.rb +1 -1
- data/lib/ogle.rb +10 -0
- metadata +1 -1
data/lib/ogle/image.rb
CHANGED
@@ -17,9 +17,11 @@ module Ogle
|
|
17
17
|
"ami-#{padded}"
|
18
18
|
end
|
19
19
|
|
20
|
-
|
20
|
+
attr_accessor :attributes
|
21
|
+
def initialize attributes
|
22
|
+
@attributes = attributes
|
21
23
|
class << self; self end.instance_eval do
|
22
|
-
|
24
|
+
attributes.each_pair.each do |k, v|
|
23
25
|
define_method k do
|
24
26
|
v
|
25
27
|
end
|
data/lib/ogle/version.rb
CHANGED
data/lib/ogle.rb
CHANGED