rentlinx 0.4.1 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rentlinx/models/base.rb +3 -3
- data/lib/rentlinx/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7b2d847aedddaa5ea10c385c15f8bdbb0a577e11
|
4
|
+
data.tar.gz: d1c4fadcc7cd83f639853f94304068f928a42cfa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d61accbd165974b51cd657c8fac9218438229b9a486d10aa2cb22965a4809819e9220f53470402099e35a3b9bb9788de3685ff050e77060714ddc1803ee1aa73
|
7
|
+
data.tar.gz: 34b2fe43c6976f5a24694ee25e0dcc30c2dbb814d80b9b20e7c260fa842cf60162e76ca6642482cab8865586a887060015505a9e1dd3b84157b3b6e3f09dca39
|
data/lib/rentlinx/models/base.rb
CHANGED
@@ -2,11 +2,11 @@ module Rentlinx
|
|
2
2
|
class Base
|
3
3
|
def initialize(attrs)
|
4
4
|
@processor = AttributeProcessor.new(attrs)
|
5
|
-
|
5
|
+
new_attrs = @processor.process
|
6
6
|
attributes.each do |at|
|
7
|
-
send("#{at}=",
|
7
|
+
send("#{at}=", new_attrs[at])
|
8
8
|
end
|
9
|
-
remaining_attrs =
|
9
|
+
remaining_attrs = new_attrs.keys - attributes
|
10
10
|
raise UnexpectedAttributes, "Unexpected Attributes: #{remaining_attrs.join(', ')}" if remaining_attrs.compact.size > 0
|
11
11
|
end
|
12
12
|
|
data/lib/rentlinx/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rentlinx
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- AppFolio, Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-07-
|
11
|
+
date: 2015-07-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httpclient
|