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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2c75b849960b8c54d97dc97426d7cedbf4f0c3e2
4
- data.tar.gz: 80a51789ad5c1215fcb832f77ea7d2e8606d05fb
3
+ metadata.gz: 18607fd3b21dbaaa696cc72af03258f5b25f7446
4
+ data.tar.gz: 10863ece3e774b24c780c6074cb5f752db02f126
5
5
  SHA512:
6
- metadata.gz: 69fe728479bdbb87fc8bf4f6b85d267704832a4b0db5f9b45851ad8ac23f55682468f1be9d65c268ffbca6ec7f69b6f40f4c189b9f4749e7d13055e4bbf22923
7
- data.tar.gz: 917e198560c0925c5e2805f97b90cec1bb1adcf75be29ddbcf411d1c2ce9058e58addc4d276d445f054ac277bf7d8e17cb750310fc06c252dbe8c70dde9c3fd6
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, :response
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)
@@ -1,3 +1,3 @@
1
1
  module Dialers
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
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.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-09 00:00:00.000000000 Z
11
+ date: 2015-09-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday