Sha256: 427b60b0365626e9a0c4bf3a9fdcae685c2e7e1e1081b6e6f6696abfa4103ee1
Contents?: true
Size: 1.24 KB
Versions: 2
Compression:
Stored size: 1.24 KB
Contents
# ExtraSpace [![LICENSE](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/ksylvest/extraspace/blob/main/LICENSE) [![RubyGems](https://img.shields.io/gem/v/extraspace)](https://rubygems.org/gems/extraspace) [![GitHub](https://img.shields.io/badge/github-repo-blue.svg)](https://github.com/ksylvest/extraspace) [![Yard](https://img.shields.io/badge/docs-site-blue.svg)](https://extraspace.ksylvest.com) [![CircleCI](https://img.shields.io/circleci/build/github/ksylvest/extraspace)](https://circleci.com/gh/ksylvest/extraspace) ## Installation ```bash gem install extrapsace ``` ## Usage ```ruby require 'extraspace' URL = 'https://www.extraspace.com/storage/facilities/us/alabama/auburn/3264/' facility = ExtraSpace::Facility.fetch(url: URL) puts "Line 1: #{facility.address.line1}" puts "Line 2: #{facility.address.line2}" puts "City: #{facility.address.city}" puts "State: #{facility.address.state}" puts "ZIP: #{facility.address.zip}" puts "Latitude: #{facility.geocode.latitude}" puts "Longitude: #{facility.geocode.longitude}" puts facility.prices.each do |price| puts "UID: #{price.uid}" puts "Dimensions: #{price.dimensions.display}" puts "Rates: $#{price.rates.street} (street) / $#{price.rates.web} (web)" puts end ```
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
extraspace-0.1.1 | README.md |
extraspace-0.1.0 | README.md |