Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Remove references to two-argument attr method.

It has been marked as obsolete since Ruby 1.9.1.
Convert one-argument attr method calls to attr_reader for consistency.
  • Loading branch information...
commit 6f2055b5051de272da7b374528fef9fb0b724e6e 1 parent 60e9003
@tylerhunt authored
Showing with 6 additions and 6 deletions.
  1. +5 −5 lib/brewery_db/config.rb
  2. +1 −1  lib/brewery_db/resources/brewery.rb
View
10 lib/brewery_db/config.rb
@@ -6,11 +6,11 @@ class Config
USER_AGENT = "BreweryDB Ruby Gem #{BreweryDB::VERSION}"
TIMEOUT = 60
- attr :adapter, true
- attr :api_key, true
- attr :base_uri, true
- attr :timeout, true
- attr :user_agent, true
+ attr_accessor :adapter
+ attr_accessor :api_key
+ attr_accessor :base_uri
+ attr_accessor :timeout
+ attr_accessor :user_agent
def initialize
self.adapter = Faraday.default_adapter
View
2  lib/brewery_db/resources/brewery.rb
@@ -1,7 +1,7 @@
module BreweryDB
module Resources
class Brewery < Resource
- attr :id
+ attr_reader :id
def initialize(config, options={})
@id = options[:id]
Please sign in to comment.
Something went wrong with that request. Please try again.