api-moip-assinaturas 0.2.14 → 0.2.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +8 -8
- data/api_moip_assinaturas.gemspec +1 -1
- data/lib/moip/models/customer.rb +6 -2
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
!binary "U0hBMQ==":
|
|
3
3
|
metadata.gz: !binary |-
|
|
4
|
-
|
|
4
|
+
YzAxZmVmZTIzMjA5OGY3OTFiOTYxMjcyODhlZTk4ZjY1YjQyOTQ1NA==
|
|
5
5
|
data.tar.gz: !binary |-
|
|
6
|
-
|
|
6
|
+
ZDBlODE1NTg0MTA0NDc5MTAyZTc0YTY3NTVlZGE0ZGY4ODlmMzgwNA==
|
|
7
7
|
!binary "U0hBNTEy":
|
|
8
8
|
metadata.gz: !binary |-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
MjViMjhjZTA5YzZkOTdkYzQ1NWVmYjNlNDg1ZjIxOTdjNDQ0NzBjZTlkNmI5
|
|
10
|
+
ZTdmNmY1MDA5MWQwNTZhNjM3ODc1ZTYwN2M5NWM5MGI3OTkyM2U2MTY3ZTI4
|
|
11
|
+
Y2E0N2ZiNDUyMzZkMDQ2NTY0ZDQ5YTU4ZTViZWRhNjNkMTYyOGM=
|
|
12
12
|
data.tar.gz: !binary |-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
YTdiMzc0MTk2ZjU0OWE1Zjc2MDY2MTBmNDIzYTFiMTcyMmNkMWQwNjhlYjgw
|
|
14
|
+
Yzk1NWUzNjU0YzJhYTgwMGIzMmRiZTMxNjM0Y2NlNDAwYzljMjU4NWExY2I3
|
|
15
|
+
NDFkYjA3OTQ4ODA0YTllYTgyNmIzMGZkNzc5YmRlNjdkODZiNGY=
|
|
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
|
|
|
3
3
|
|
|
4
4
|
Gem::Specification.new do |s|
|
|
5
5
|
s.name = 'api-moip-assinaturas'
|
|
6
|
-
s.version = '0.2.
|
|
6
|
+
s.version = '0.2.15'
|
|
7
7
|
s.date = '2013-07-02'
|
|
8
8
|
s.summary = "Moip Assinaturas by Pixxel"
|
|
9
9
|
s.description = "Gem desenvolvida para atender aos requisitos do moip api de assinaturas"
|
data/lib/moip/models/customer.rb
CHANGED
|
@@ -31,14 +31,18 @@ class Moip::Customer < Moip::Model
|
|
|
31
31
|
end
|
|
32
32
|
|
|
33
33
|
def address= options = {}
|
|
34
|
-
|
|
34
|
+
if options.is_a? Hash
|
|
35
|
+
@address = Moip::Address.build options
|
|
36
|
+
elsif options.is_a? Moip::Address
|
|
37
|
+
@address = Moip::Address
|
|
38
|
+
end
|
|
35
39
|
end
|
|
36
40
|
|
|
37
41
|
def address
|
|
38
42
|
@address.serializable_hash.delete_if {|key, value| value.nil? }
|
|
39
43
|
end
|
|
40
44
|
|
|
41
|
-
def billing_info= options
|
|
45
|
+
def billing_info= options = {}
|
|
42
46
|
if options.is_a? Hash
|
|
43
47
|
@billing_info = Moip::BillingInfo.build options
|
|
44
48
|
elsif options.is_a? Moip::BillingInfo
|