Class: YelpHtmlParser::Resources::Business

Inherits:
Object
  • Object
show all
Defined in:
lib/yelp_html_parser/resources/business.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeBusiness

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

#addressObject

Returns the value of attribute address.



4
5
6
# File 'lib/yelp_html_parser/resources/business.rb', line 4

def address
  @address
end

#avatarObject

Returns the value of attribute avatar.



4
5
6
# File 'lib/yelp_html_parser/resources/business.rb', line 4

def avatar
  @avatar
end

#business_nameObject

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

#phoneObject

Returns the value of attribute phone.



4
5
6
# File 'lib/yelp_html_parser/resources/business.rb', line 4

def phone
  @phone
end

#urlObject

Returns the value of attribute url.



4
5
6
# File 'lib/yelp_html_parser/resources/business.rb', line 4

def url
  @url
end