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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c0a4b34cda62d55c5dd556c9fc987fd366c9fcbc82468dc42d874531489c3a0a
4
- data.tar.gz: 7e47f606898567a686d83f21e934dd15b45d6ce714840765407d0e602827c942
3
+ metadata.gz: 416462f097d3c8f69ca14279a0fca03b51eaa0c444423426b2b7ab5094c5f1ad
4
+ data.tar.gz: 7fba08350a4f6c30da17b7a0c6ffc7121766ca7d4952446a3a44835311bd0a84
5
5
  SHA512:
6
- metadata.gz: 516a3c582ab3d98c11dc9f3787a5d523a292f53ee9bae73de866e66e5f206300e4b8da93cbeae81fbcabdc7c92a0b72cd73c759ea4401145a9214c712117323b
7
- data.tar.gz: 7f46761d757f85f8ed81c9b866c406a9c8e284ba609a40b26831382b6598afb6aab4b4c8af364fd76debdafdc9b24040746f5d2d5362ba40ba2b40387bc8f646
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CompaniesHouseHub
4
- VERSION = '0.0.8'
4
+ VERSION = '0.0.9'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: companies_house_hub
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ricardo Otero