Skip to content

Commit

Permalink
fix warnings issue
Browse files Browse the repository at this point in the history
  • Loading branch information
KomalDhanwani committed Nov 14, 2015
1 parent 8667ada commit 4aa287b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/address_validator/address.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def from_xml(attrs = {})

attr_accessor :name, :street1, :city, :state, :zip, :country, :classification

def initialize(name: name, street1: street1, city: city, state: state, zip: zip, country: country, classification: classification)
def initialize(name: name(), street1: street1(), city: city(), state: state(), zip: zip(), country: country(), classification: classification())
@name = name
@street1 = street1
@city = city
Expand Down Expand Up @@ -65,4 +65,4 @@ def to_xml(options={})
xml.target!
end
end
end
end

0 comments on commit 4aa287b

Please sign in to comment.