advisors_command_client 1.1.0 → 1.1.1

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: a2cf9cbecdca43888a75b83cd87ef502a89e0140
4
- data.tar.gz: f3e0b3d261e5b0733eafc3545214846bc97d94e7
3
+ metadata.gz: d12755cea37bd7302fc03735b0cc7da5b77f281d
4
+ data.tar.gz: ebbb3346fe09d211b1ba993f4b618c3ac624a68c
5
5
  SHA512:
6
- metadata.gz: a94f164598dad808cda68835069d39a3cb754e30e481c22143b478d87720ec7f49b9ad70e949231e90b79a3a118cf3374ea91de86cf2434ed73c7080a1454d4f
7
- data.tar.gz: c2e0c437e029dce1ce7789ec7842605202cae5049868dd30b471fd18ac77027b39814f7bf165a76c3bab16b36ec21482b25e1ec0ccdea53301cfd2267274de83
6
+ metadata.gz: 3ad06fc9d79ccb6228345447dddc30dd0da9d7c0e0f8c76a9b406cc345f5faf491fc4bafcdeb239421aa94f54ddbe448222b0e52f55ac661521efd00e4822ab1
7
+ data.tar.gz: 0406aca0f9a89e8a8a949298e673ad1d766c50abd41e8a3dd51f1b0a514160667761f0c41958732e5a65b486ca4e1a292c91703fd12d2a0e6a8a91ba7af271d9
@@ -3,14 +3,18 @@ module AdvisorsCommandClient
3
3
  class Contact < Base
4
4
  attribute :id, Integer
5
5
  attribute :nickname, String
6
+ attribute :name_prefix, String
6
7
  attribute :first_name, String
7
8
  attribute :middle_name, String
8
9
  attribute :last_name, String
10
+ attribute :name_suffix, String
9
11
  attribute :gender, String
10
12
  attribute :birthday, DateTime
11
13
  attribute :email, String
12
14
  attribute :created_at, DateTime
13
15
  attribute :updated_at, DateTime
16
+ attribute :employer, String
17
+ attribute :job_title, String
14
18
 
15
19
  attribute :emails, Array[Hash]
16
20
  attribute :phones, Array[Hash]
@@ -18,7 +22,7 @@ module AdvisorsCommandClient
18
22
 
19
23
 
20
24
  def full_name
21
- [first_name, middle_name, last_name].compact.join(' ')
25
+ [name_prefix, first_name, middle_name, last_name, name_suffix].reject(&:blank?).join(' ')
22
26
  end
23
27
 
24
28
  def accounts
@@ -26,8 +30,6 @@ module AdvisorsCommandClient
26
30
  resp = @connection.get("accounts/#{id}")
27
31
  if resp.success?
28
32
  AdvisorsCommandClient::Models::Account.load(resp.body)
29
- else
30
- nil
31
33
  end
32
34
  end
33
35
  end
@@ -1,3 +1,3 @@
1
1
  module AdvisorsCommandClient
2
- VERSION = "1.1.0"
2
+ VERSION = "1.1.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: advisors_command_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christopher Ostrowski
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-01-22 00:00:00.000000000 Z
11
+ date: 2016-01-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler