redtape 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/redtape.rb +6 -0
  2. data/lib/redtape/version.rb +1 -1
  3. metadata +3 -3
data/lib/redtape.rb CHANGED
@@ -17,6 +17,12 @@ module Redtape
17
17
  @@model_accessors = args
18
18
  end
19
19
 
20
+ def initialize(attrs = {})
21
+ attrs.each do |k, v|
22
+ send("@#{k}=", v)
23
+ end
24
+ end
25
+
20
26
  def models_correct
21
27
  @@model_accessors.each do |accessor|
22
28
  begin
@@ -1,3 +1,3 @@
1
1
  module Redtape
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redtape
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -115,7 +115,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
115
115
  version: '0'
116
116
  segments:
117
117
  - 0
118
- hash: -1141785784742973745
118
+ hash: -898225106165636262
119
119
  required_rubygems_version: !ruby/object:Gem::Requirement
120
120
  none: false
121
121
  requirements:
@@ -124,7 +124,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
124
124
  version: '0'
125
125
  segments:
126
126
  - 0
127
- hash: -1141785784742973745
127
+ hash: -898225106165636262
128
128
  requirements: []
129
129
  rubyforge_project:
130
130
  rubygems_version: 1.8.24