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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 416462f097d3c8f69ca14279a0fca03b51eaa0c444423426b2b7ab5094c5f1ad
4
- data.tar.gz: 7fba08350a4f6c30da17b7a0c6ffc7121766ca7d4952446a3a44835311bd0a84
3
+ metadata.gz: b52fa178fee5cd22f148652bf0943d50fb4bf9907520ded1e494959d2d6e3066
4
+ data.tar.gz: 667153d696f80bc750a82d096606848fcb47b99352e4f69b0cdab452804ae630
5
5
  SHA512:
6
- metadata.gz: 44230bb1ab30b52b85b754bea11eb4d1186b8e5f0df41e73f1fb9c45d6460847847ff832eb2e87043bdd3de0f638b4e06357557b1f24081d3bdcab0d76cdebcb
7
- data.tar.gz: daa1aad31858ec1185b0699893738c69b7a18238d49329009c0b33c3630738d0dbb6fa523557d7a4d8227aa7a1a236d51e4d6da4d6bcb61024c61f69fd6455ec
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CompaniesHouseHub
4
- VERSION = '0.0.9'
4
+ VERSION = '0.0.10'
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.9
4
+ version: 0.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ricardo Otero