Method: AylienNewsApi::Location#==
- Defined in:
- lib/aylien_news_api/models/location.rb
#==(o) ⇒ Object
Checks equality by comparing each attribute.
93 94 95 96 97 98 99 |
# File 'lib/aylien_news_api/models/location.rb', line 93 def ==(o) return true if self.equal?(o) self.class == o.class && city == o.city && country == o.country && state == o.state end |