atech-billy 1.0.12 → 1.0.13

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/billy.rb +1 -1
  2. data/lib/billy/service.rb +5 -0
  3. metadata +7 -12
@@ -12,7 +12,7 @@ require 'billy/invoice'
12
12
 
13
13
  module Billy
14
14
 
15
- VERSION = '1.0.12'
15
+ VERSION = '1.0.13'
16
16
 
17
17
  class << self
18
18
 
@@ -60,6 +60,11 @@ module Billy
60
60
  attributes.is_a?(Hash) ? Billy::Invoice.new(attributes) : nil
61
61
  end
62
62
 
63
+ def address?
64
+ return false if self.address.first.nil? || self.address.last.nil?
65
+ return true
66
+ end
67
+
63
68
  def self.find(field, data)
64
69
  attributes = Billy::Request.request('services/info', :field => field, :data => data)
65
70
  attributes.is_a?(Hash) ? self.new(attributes) : nil
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: atech-billy
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.12
4
+ version: 1.0.13
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-07-21 00:00:00.000000000 Z
12
+ date: 2012-11-12 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: basic_ssl
16
- requirement: !ruby/object:Gem::Requirement
16
+ requirement: &70346225972260 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,12 +21,7 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
- requirements:
27
- - - ! '>='
28
- - !ruby/object:Gem::Version
29
- version: '0'
24
+ version_requirements: *70346225972260
30
25
  description:
31
26
  email: adam@atechmedia.com
32
27
  executables: []
@@ -35,10 +30,10 @@ extra_rdoc_files: []
35
30
  files:
36
31
  - lib/billy.rb
37
32
  - lib/billy/base_model.rb
38
- - lib/billy/signup_token.rb
39
- - lib/billy/service.rb
40
33
  - lib/billy/invoice.rb
41
34
  - lib/billy/request.rb
35
+ - lib/billy/service.rb
36
+ - lib/billy/signup_token.rb
42
37
  homepage: http://atechmedia.com
43
38
  licenses: []
44
39
  post_install_message:
@@ -59,7 +54,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
59
54
  version: '0'
60
55
  requirements: []
61
56
  rubyforge_project:
62
- rubygems_version: 1.8.24
57
+ rubygems_version: 1.8.10
63
58
  signing_key:
64
59
  specification_version: 3
65
60
  summary: Easy to use client library for Billy