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 CHANGED
@@ -17,9 +17,11 @@ module Ogle
17
17
  "ami-#{padded}"
18
18
  end
19
19
 
20
- def initialize hash
20
+ attr_accessor :attributes
21
+ def initialize attributes
22
+ @attributes = attributes
21
23
  class << self; self end.instance_eval do
22
- hash.each_pair.each do |k, v|
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
@@ -1,3 +1,3 @@
1
1
  module Ogle
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
data/lib/ogle.rb CHANGED
@@ -1 +1,11 @@
1
1
  require "ogle/client"
2
+
3
+ module Ogle
4
+ class Rails
5
+ def self.insert
6
+ ::Ogle::ImageData.class_eval do
7
+ include ActiveModel::Serialization
8
+ end
9
+ end
10
+ end
11
+ end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: ogle
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.2.0
5
+ version: 0.2.1
6
6
  platform: ruby
7
7
  authors:
8
8
  - Kevin Bringard