Class: YelpHtmlParser::Resources::Business
- Inherits:
-
Object
- Object
- YelpHtmlParser::Resources::Business
- Defined in:
- lib/yelp_html_parser/resources/business.rb
Instance Attribute Summary collapse
-
#address ⇒ Object
Returns the value of attribute address.
-
#avatar ⇒ Object
Returns the value of attribute avatar.
-
#business_name ⇒ Object
Returns the value of attribute business_name.
-
#phone ⇒ Object
Returns the value of attribute phone.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize ⇒ Business
constructor
A new instance of Business.
Constructor Details
#initialize ⇒ Business
Returns a new instance of Business.
6 7 8 9 10 11 12 |
# File 'lib/yelp_html_parser/resources/business.rb', line 6 def initialize @business_name = nil @url = nil @avatar = nil @address = nil @phone = nil end |
Instance Attribute Details
#address ⇒ Object
Returns the value of attribute address.
4 5 6 |
# File 'lib/yelp_html_parser/resources/business.rb', line 4 def address @address end |
#avatar ⇒ Object
Returns the value of attribute avatar.
4 5 6 |
# File 'lib/yelp_html_parser/resources/business.rb', line 4 def avatar @avatar end |
#business_name ⇒ Object
Returns the value of attribute business_name.
4 5 6 |
# File 'lib/yelp_html_parser/resources/business.rb', line 4 def business_name @business_name end |
#phone ⇒ Object
Returns the value of attribute phone.
4 5 6 |
# File 'lib/yelp_html_parser/resources/business.rb', line 4 def phone @phone end |
#url ⇒ Object
Returns the value of attribute url.
4 5 6 |
# File 'lib/yelp_html_parser/resources/business.rb', line 4 def url @url end |