companies_house_hub 0.0.9 → 0.0.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/companies_house_hub/models/company.rb +3 -1
- data/lib/companies_house_hub/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b52fa178fee5cd22f148652bf0943d50fb4bf9907520ded1e494959d2d6e3066
|
4
|
+
data.tar.gz: 667153d696f80bc750a82d096606848fcb47b99352e4f69b0cdab452804ae630
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a90c9d22762fe63f058befd6b5e8364498c01e369b038a8eb3595f6598b41850361e23e1e57ba2a461c3f25c360d20d54d190e8fcdbb25a6a071180168940789
|
7
|
+
data.tar.gz: e0c7bf521cfcc0b1863b3d3b5d285dec99c280c70820d5d3fb1f8c3b6f45487c96c01a27eba28e4d8daf56b2320f21ce50c784388de2c70fd91c833b0bd2c79d
|
@@ -10,7 +10,7 @@ module CompaniesHouseHub
|
|
10
10
|
FIND_PATH = '/company/:company_number'
|
11
11
|
|
12
12
|
attr_reader :number, :name, :created_at, :address, :type, :jurisdiction, :has_been_liquidated
|
13
|
-
attr_reader :status
|
13
|
+
attr_reader :status, :accounts
|
14
14
|
|
15
15
|
alias company_number number
|
16
16
|
alias company_name name
|
@@ -36,6 +36,7 @@ module CompaniesHouseHub
|
|
36
36
|
end
|
37
37
|
|
38
38
|
def initialize(json = {})
|
39
|
+
p json
|
39
40
|
@number = json.dig(:company_number)
|
40
41
|
@has_been_liquidated = json.dig(:has_been_liquidated)
|
41
42
|
@jurisdiction = json.dig(:jurisdiction)
|
@@ -44,6 +45,7 @@ module CompaniesHouseHub
|
|
44
45
|
@address = Address.new(json.dig(:registered_office_address))
|
45
46
|
@status = json.dig(:company_status)
|
46
47
|
@type = json.dig(:type)
|
48
|
+
@accounts = json.dig(:accounts)
|
47
49
|
end
|
48
50
|
|
49
51
|
def filing_histories
|