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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7cd7f2188c5d1e8ec437a794e25b18c35955e6eee7aa1718f27200d341d6d42e
4
- data.tar.gz: ee5a64959547fd889a1acfadee16cc7929b3c9e69f41c3cbcc2cdaeef2a03735
3
+ metadata.gz: 1e879eee78437b9d408b405a8f11a74810fe0aef5075dab0d821d250557c53e6
4
+ data.tar.gz: 4a2f85d6b29a92c179c26830ec9c0446175db71a5fa24b68fdab3171b2f51460
5
5
  SHA512:
6
- metadata.gz: ce8e6e7ec9e2a31e1245555e975b0288cd468f8fc5658ff04dfd3c98ca7e08a54e2f3f9739cab0adf025d13cf186632b5168f405be797688494cece96d79bf4d
7
- data.tar.gz: 9c6a54085e1a535e50a359185d1110d31d374e6ad3d135699558567ec158111d8d22b3dbdbe420a2e15698aa2d07fcef58cc56ce582c62e0ab6be817ecc1ad53
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CompaniesHouseHub
4
- VERSION = '0.0.11'
4
+ VERSION = '0.0.12'
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.11
4
+ version: 0.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ricardo Otero