companies_house_hub 0.1.6 → 0.1.7

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: 87deb56643adb8d9c64311cab90a144cce83461396798bccab070eeb538170bc
4
- data.tar.gz: 6fd9dc47087a11fccc21c90e0d3a8d47d89f2672462eadbe1bcba294774df6ce
3
+ metadata.gz: b8e5df4f7b60295ef0c1074db071ba3e1059b27111badcb84da2ff7a4348088f
4
+ data.tar.gz: 52e37cb19a77cc53c5619c12c3f92957ead72464578568a2b5863c4504c24bc8
5
5
  SHA512:
6
- metadata.gz: 8b3264ff1d4bcc95661b2693b22da5bf0426bf0721dfc798acd023ff62a010e0ee09c831509f6c9a77d72fa2b31b56409e43ce395f326b8fbb1ae2cae402aa3a
7
- data.tar.gz: d35abe06fd8a1ed547f400c0b2b1881c5d4f82eb3741e506e040d41d2515b805f0c0e0cfe1982e0f8ab03fe842313ab851cdb8169bd5604cc47869d2a865520f
6
+ metadata.gz: 927e9bc1f1f50b31e714a8cdc0f09124e870533cd28c2938a90f3e5a4a2a0e959289d9d69496b0b90a6d243fb7fffd3099f95b95613320584e3bbb59088b3e05
7
+ data.tar.gz: 50b9c5ae27a4dc634615a3b5478b67591fdd1340265e50143644651c5b5717bd921400919475f1b29aa0cd83865411fcb4605c90d6e10bfac3875c9bb7552e09
data/README.md CHANGED
@@ -23,7 +23,7 @@ Set up CompaniesHouseHub in a block:
23
23
 
24
24
  ```ruby
25
25
  CompaniesHouseHub.configure do |config|
26
- config.api_token = <YOUR_TOKEN>
26
+ config.api_key = <YOUR_TOKEN>
27
27
  end
28
28
  ```
29
29
 
@@ -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, :confirmation_statement, :full_address
13
+ attr_reader :status, :accounts, :confirmation_statement, :full_address, :raw_json
14
14
 
15
15
  alias company_number number
16
16
  alias company_name name
@@ -45,6 +45,7 @@ module CompaniesHouseHub
45
45
  end
46
46
 
47
47
  def initialize(json = {})
48
+ @raw_json = json
48
49
  @number = json.dig(:company_number)
49
50
  @has_been_liquidated = json.dig(:has_been_liquidated)
50
51
  @jurisdiction = json.dig(:jurisdiction)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CompaniesHouseHub
4
- VERSION = '0.1.6'
4
+ VERSION = '0.1.7'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: companies_house_hub
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ricardo Otero
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-03-02 00:00:00.000000000 Z
11
+ date: 2020-04-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday