tradier 0.5.2 → 0.5.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3e7498b5316394cc6c9736d2cd7c32951770a1ca
4
- data.tar.gz: db585a53c0eabe989e85cfecdd7004186b70a6b5
3
+ metadata.gz: c470acdf096918b88c2296ae8b5bd1c843ea2fbf
4
+ data.tar.gz: b5f4619cb2824b0657087d228f50a775a137a359
5
5
  SHA512:
6
- metadata.gz: 79084872a468126be3df6206fd33741a3f8930a055244917dbe74972ccca24f98eacf08ef08d61642fd94114c6c515b92ef10851ece392ebb69c446603d29b92
7
- data.tar.gz: afd7413b93d60acd239da91982357a2a56fc759a84293611e770f2f09b93334c3ae7f240be0c452afa3ece9707c5d374e68fd7768885a80f3cdd756b6cd185a6
6
+ metadata.gz: 0a9272ff077fce537573aeb749677772cd897af6ac574c13547af64926d4d168192f37040e6afd39f763f6ede09527fd23ca5f688181c316474651eba97228d6
7
+ data.tar.gz: ae2e2b3aa0a077cd3d04ef3ca753622c110e5d325c107a39032e7995839c3340749a9cab552d901eba702bc8a803f0f3e4908be8855b4632c27fc49ad053a174
@@ -60,5 +60,9 @@ module Tradier
60
60
  traditional_ira? || roth_ira? || rollover_ira?
61
61
  end
62
62
 
63
+ def entity?
64
+ classification && classification.downcase == 'entity'
65
+ end
66
+
63
67
  end
64
68
  end
@@ -1,3 +1,3 @@
1
1
  module Tradier
2
- VERSION = '0.5.2'
2
+ VERSION = '0.5.3'
3
3
  end
@@ -130,4 +130,11 @@ describe Tradier::Account do
130
130
  end
131
131
  end
132
132
 
133
+ describe '#entity?' do
134
+ subject { described_class.new(:classification => 'entity') }
135
+ it 'returns true when a entity account' do
136
+ expect(subject.entity?).to be_truthy
137
+ end
138
+ end
139
+
133
140
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tradier
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steve Agalloco
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-12-30 00:00:00.000000000 Z
12
+ date: 2015-01-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: faraday