Class: Providers::Citysearch::Business
- Inherits:
-
Object
- Object
- Providers::Citysearch::Business
- Defined in:
- lib/providers/citysearch/business.rb
Instance Attribute Summary collapse
-
#address ⇒ Object
Returns the value of attribute address.
-
#average_rating ⇒ Object
Returns the value of attribute average_rating.
-
#name ⇒ Object
Returns the value of attribute name.
-
#reference ⇒ Object
Returns the value of attribute reference.
-
#total_reviews ⇒ Object
Returns the value of attribute total_reviews.
-
#url ⇒ Object
Returns the value of attribute url.
Class Method Summary collapse
Instance Attribute Details
#address ⇒ Object
Returns the value of attribute address.
4 5 6 |
# File 'lib/providers/citysearch/business.rb', line 4 def address @address end |
#average_rating ⇒ Object
Returns the value of attribute average_rating.
4 5 6 |
# File 'lib/providers/citysearch/business.rb', line 4 def @average_rating end |
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/providers/citysearch/business.rb', line 4 def name @name end |
#reference ⇒ Object
Returns the value of attribute reference.
4 5 6 |
# File 'lib/providers/citysearch/business.rb', line 4 def reference @reference end |
#total_reviews ⇒ Object
Returns the value of attribute total_reviews.
4 5 6 |
# File 'lib/providers/citysearch/business.rb', line 4 def total_reviews @total_reviews end |
#url ⇒ Object
Returns the value of attribute url.
4 5 6 |
# File 'lib/providers/citysearch/business.rb', line 4 def url @url end |
Class Method Details
.build_business(node) ⇒ Object
6 7 8 9 10 11 12 13 |
# File 'lib/providers/citysearch/business.rb', line 6 def self.build_business(node) return nil if node.nil? || node["id"].nil? || node["name"].nil? || node["address"].nil? new(node) end |