open-companies-house 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README.md
CHANGED
|
@@ -3,7 +3,16 @@ Open Companies House
|
|
|
3
3
|
|
|
4
4
|
Simple ruby wrapper around Companies House Open API
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
Installation
|
|
7
|
+
============
|
|
8
|
+
|
|
9
|
+
In your Gemfile
|
|
10
|
+
|
|
11
|
+
```ruby
|
|
12
|
+
gem "open-companies-house", "~> 0.2.0", require: 'companies_house'
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
Usage
|
|
7
16
|
=====
|
|
8
17
|
|
|
9
18
|
```ruby
|
|
@@ -18,6 +18,10 @@ describe CompaniesHouse::Response do
|
|
|
18
18
|
@response["CompanyName"].should == "GOCARDLESS LTD"
|
|
19
19
|
end
|
|
20
20
|
|
|
21
|
+
it "makes raw attributes available as well" do
|
|
22
|
+
@response.attributes["CompanyName"].should == "GOCARDLESS LTD"
|
|
23
|
+
end
|
|
24
|
+
|
|
21
25
|
it "makes SIC code available as a convenience method" do
|
|
22
26
|
@response.sic_code.should == "62090"
|
|
23
27
|
end
|