companies_house_hub 0.0.11 → 0.0.12
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 +2 -5
- 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: 1e879eee78437b9d408b405a8f11a74810fe0aef5075dab0d821d250557c53e6
|
4
|
+
data.tar.gz: 4a2f85d6b29a92c179c26830ec9c0446175db71a5fa24b68fdab3171b2f51460
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c9781eac2a29d838ab24d8625efca71f72ee7dbce15892f0ee3bbaf53ed0deaf18a8c3bb8948918302701c9b6bdfb03ea1e6d02cff5c9f43dbd3389f28af3967
|
7
|
+
data.tar.gz: 636bc807d22816913abcda9f0ecaa84673ff2ef622ea058a52620428f08d7ac8480bb8ba2cfa70ff3ba32872186ed85f2011da738371d42cee681079d479e794
|
@@ -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, :accounts
|
13
|
+
attr_reader :status, :accounts, :full_address
|
14
14
|
|
15
15
|
alias company_number number
|
16
16
|
alias company_name name
|
@@ -45,16 +45,13 @@ module CompaniesHouseHub
|
|
45
45
|
@status = json.dig(:company_status)
|
46
46
|
@type = json.dig(:type)
|
47
47
|
@accounts = json.dig(:accounts)
|
48
|
+
@full_address = @address.full
|
48
49
|
end
|
49
50
|
|
50
51
|
def filing_histories
|
51
52
|
FilingHistory.all(company_number: @number)
|
52
53
|
end
|
53
54
|
|
54
|
-
def full_address
|
55
|
-
@address.full
|
56
|
-
end
|
57
|
-
|
58
55
|
def active?
|
59
56
|
@status == 'active'
|
60
57
|
end
|