This Gem has been created with the intention of making it simple to determine MAC addresses. Heavily inspired by macaddr
Add this line to your application's Gemfile:
gem 'mac_addresses'
And then execute:
$ bundle
Or install it yourself as:
$ gem install mac_addresses
First you have to fetch MAC addresses:
MacAddresses.fetch # this also returns the list of addresses
Then you can access the cached addresses with:
MacAddresses.list
Bug reports and pull requests are welcome on GitHub at https://github.com/FancyPixel/mac_addresses. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.
After checking out the repo, run bin/setup
to install dependencies. Then, run bundle exec rspec
to run the tests.
You can also run bin/console
for an interactive prompt that will allow you to experiment.
To install this gem onto your local machine, run bundle exec rake install
.
The gem is available as open source under the terms of the MIT License.