collector 0.0.9 → 0.0.10
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/collector/model.rb +0 -4
- data/lib/collector/version.rb +1 -1
- metadata +1 -1
data/lib/collector/model.rb
CHANGED
@@ -1,5 +1,3 @@
|
|
1
|
-
require "active_support/core_ext/hash/keys"
|
2
|
-
|
3
1
|
module Collector
|
4
2
|
module Model
|
5
3
|
|
@@ -8,8 +6,6 @@ module Collector
|
|
8
6
|
end
|
9
7
|
|
10
8
|
def initialize(attributes = {})
|
11
|
-
attributes.symbolize_keys!
|
12
|
-
|
13
9
|
attributes.each do |key, value|
|
14
10
|
instance_variable_set("@#{key}", value) if methods.include? "#{key}".to_sym
|
15
11
|
send("#{key}=", value) if methods.include? "#{key}=".to_sym
|
data/lib/collector/version.rb
CHANGED