companies_house_hub 0.0.8 → 0.0.9
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 +5 -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: 416462f097d3c8f69ca14279a0fca03b51eaa0c444423426b2b7ab5094c5f1ad
|
4
|
+
data.tar.gz: 7fba08350a4f6c30da17b7a0c6ffc7121766ca7d4952446a3a44835311bd0a84
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 44230bb1ab30b52b85b754bea11eb4d1186b8e5f0df41e73f1fb9c45d6460847847ff832eb2e87043bdd3de0f638b4e06357557b1f24081d3bdcab0d76cdebcb
|
7
|
+
data.tar.gz: daa1aad31858ec1185b0699893738c69b7a18238d49329009c0b33c3630738d0dbb6fa523557d7a4d8227aa7a1a236d51e4d6da4d6bcb61024c61f69fd6455ec
|
@@ -9,10 +9,13 @@ module CompaniesHouseHub
|
|
9
9
|
SEARCH_PATH = '/search'
|
10
10
|
FIND_PATH = '/company/:company_number'
|
11
11
|
|
12
|
-
attr_reader :number, :name, :created_at, :address
|
12
|
+
attr_reader :number, :name, :created_at, :address, :type, :jurisdiction, :has_been_liquidated
|
13
|
+
attr_reader :status
|
13
14
|
|
14
15
|
alias company_number number
|
15
16
|
alias company_name name
|
17
|
+
alias date_of_creation created_at
|
18
|
+
alias company_status status
|
16
19
|
|
17
20
|
def self.search(name, per_page:, start:)
|
18
21
|
options = { q: name, items_per_page: per_page, start_index: start }
|
@@ -40,6 +43,7 @@ module CompaniesHouseHub
|
|
40
43
|
@created_at = json.dig(:date_of_creation)
|
41
44
|
@address = Address.new(json.dig(:registered_office_address))
|
42
45
|
@status = json.dig(:company_status)
|
46
|
+
@type = json.dig(:type)
|
43
47
|
end
|
44
48
|
|
45
49
|
def filing_histories
|