Sha256: 15d7ec1901dd37907db66c814ab5dd9018af152e1ca6a8c30f87e29f0453fad2

Contents?: true

Size: 1.17 KB

Versions: 2

Compression:

Stored size: 1.17 KB

Contents

The Forbes Global 2000 is an annual ranking of the top 2000 public companies in the world by Forbes magazine. The ranking is based on a mix of four metrics: sales, profit, assets and market value.  Use this gem to look up Forbes 2000 companies based on a domain name or email address.

# Installation

`gem install forbes-finder`

# Usage

```ruby
record = ForbesFinder::lookup 'exxonmobil.com'
# => <ForbesFinder::Record:0x007faa33887310>

record.name
# => "Exxon Mobil"

record.rank
# => 1
```

It'll handle email addresses and URLs with all sorts of subdomains, parameters, etc.

```ruby
record = ForbesFinder::lookup 'https://developer.apple.com/devcenter/ios/checklist/'
# => <ForbesFinder::Record:0x007faa338072a0>

record.domain
# => "apple.com"

record.name
# => "Apple"

record.rank
# => 22

ForbesFinder::lookup('william.gates@microsoft.com').name
# => "Microsoft"
```

# Limitations

* There may be cases when the company you're lookup up is a subsidiary of a Forbes 2000 company that has a different domain name. Keeping track of all of those is beyong the scope of this gem, but you're welcome to submit it as an alias.

**Data source(s):**
 * http://www.forbes.com/global2000/list/

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
forbes-finder-0.1.1 README.md
forbes-finder-0.1.0 README.md