fellowshipone-api 0.6.2 → 0.6.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/fellowshipone_api.gemspec +1 -1
- data/lib/api/sub_fund_list.rb +2 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e407704f2f83c97fd4f54d7a210ea01d896ba933
|
4
|
+
data.tar.gz: acaa958a0d71537bc17d9e34cb36db509c033588
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 231ff07605b209982381ddc5b2454c9bb0409f1dfd1bc51a0e9f32cad43bdd4ca1de79c044fdf49f05f5ef114a9ad771da2b1821387ce9d5a642f38c16d96114
|
7
|
+
data.tar.gz: de823540f93d5280ed4a801e3590ecaa9be470ebddb2bcf8bc9e7e08e0b760315f98784f83c5fcca496584a1f50d1d95cf41d4ea6566a5dbdb414e751fd5ee35
|
data/fellowshipone_api.gemspec
CHANGED
data/lib/api/sub_fund_list.rb
CHANGED
@@ -18,6 +18,7 @@ module FellowshipOne
|
|
18
18
|
def initialize(fund_id, options = {})
|
19
19
|
reader = options[:reader] || FellowshipOne::SubFundListReader.new(fund_id, options)
|
20
20
|
@json_data = reader.load_feed
|
21
|
+
@json_data['subFunds'] = {'subFund' => []} if reader.load_feed["subFunds"].nil?
|
21
22
|
@count = @json_data['subFunds']['subFund'].size.to_i
|
22
23
|
@page_number = 1
|
23
24
|
@total_records = @count
|
@@ -30,7 +31,7 @@ module FellowshipOne
|
|
30
31
|
#
|
31
32
|
# @return Fund
|
32
33
|
def [](index)
|
33
|
-
Fund.new( @json_data['
|
34
|
+
Fund.new( @json_data['subFunds']['subFund'][index] ) if @json_data['subFunds']['subFund'][index]
|
34
35
|
end
|
35
36
|
|
36
37
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fellowshipone-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Wes Hays
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-04-
|
12
|
+
date: 2014-04-10 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: typhoeus
|