dialers 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dialers/transformable.rb +4 -1
- data/lib/dialers/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: 18607fd3b21dbaaa696cc72af03258f5b25f7446
|
4
|
+
data.tar.gz: 10863ece3e774b24c780c6074cb5f752db02f126
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5d38ca52de4740aa4fb44dbe92fd5efe0f18cd5b0796be3425cf2dc50db3c1359acfff5f77e189628de224795096e61a5a0d9b7895e8d9e05522149bdad22bbe
|
7
|
+
data.tar.gz: 17d0af802a2a7b2b6ceb6d6008c17128f185133a09a5c818115e5badb2710650afe9adc1c319c676fc98f19ef94964c3eac9a6bdbdf2494f6ba8b05b24175ef6
|
@@ -2,6 +2,8 @@ module Dialers
|
|
2
2
|
# This class provide some ways to transform a reponse into an object or a set of objects
|
3
3
|
# based on what objects the user of this class wants to provide.
|
4
4
|
class Transformable
|
5
|
+
attr_reader :response
|
6
|
+
|
5
7
|
def initialize(response)
|
6
8
|
self.response = response
|
7
9
|
self.raw_data = response.body
|
@@ -51,7 +53,8 @@ module Dialers
|
|
51
53
|
|
52
54
|
private
|
53
55
|
|
54
|
-
attr_accessor :raw_data
|
56
|
+
attr_accessor :raw_data
|
57
|
+
attr_writer :response
|
55
58
|
|
56
59
|
def transform_attributes_to_object(entity_class_or_decider, attributes)
|
57
60
|
entity_class = decide_entity_class(entity_class_or_decider)
|
data/lib/dialers/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dialers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- juliogarciag
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-09-
|
11
|
+
date: 2015-09-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|