Class: BusinessSearchForm

Inherits:
Object
  • Object
show all
Includes:
ActiveModel::Model
Defined in:
app/forms/business_search_form.rb

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Instance Attribute Details

- (Object) business_type

Returns the value of attribute business_type



6
7
8
# File 'app/forms/business_search_form.rb', line 6

def business_type
  @business_type
end

- (Object) location

Returns the value of attribute location



5
6
7
# File 'app/forms/business_search_form.rb', line 5

def location
  @location
end

- (Object) name

Returns the value of attribute name



4
5
6
# File 'app/forms/business_search_form.rb', line 4

def name
  @name
end

Instance Method Details

- (Object) businesses



10
11
12
# File 'app/forms/business_search_form.rb', line 10

def businesses
  Business.search self
end