Class: AhoyCaptain::FilterParser::Item

Inherits:
Object
  • Object
show all
Defined in:
app/models/ahoy_captain/filter_parser.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#columnObject

Returns the value of attribute column.



5
6
7
# File 'app/models/ahoy_captain/filter_parser.rb', line 5

def column
  @column
end

#descriptionObject

Returns the value of attribute description.



5
6
7
# File 'app/models/ahoy_captain/filter_parser.rb', line 5

def description
  @description
end

#labelObject

Returns the value of attribute label.



5
6
7
# File 'app/models/ahoy_captain/filter_parser.rb', line 5

def label
  @label
end

Returns the value of attribute modal.



5
6
7
# File 'app/models/ahoy_captain/filter_parser.rb', line 5

def modal
  @modal
end

#nameObject

Returns the value of attribute name.



5
6
7
# File 'app/models/ahoy_captain/filter_parser.rb', line 5

def name
  @name
end

#predicateObject

Returns the value of attribute predicate.



5
6
7
# File 'app/models/ahoy_captain/filter_parser.rb', line 5

def predicate
  @predicate
end

#urlObject

Returns the value of attribute url.



5
6
7
# File 'app/models/ahoy_captain/filter_parser.rb', line 5

def url
  @url
end

#valuesObject

Returns the value of attribute values.



5
6
7
# File 'app/models/ahoy_captain/filter_parser.rb', line 5

def values
  @values
end

Instance Method Details

#titleObject



7
8
9
# File 'app/models/ahoy_captain/filter_parser.rb', line 7

def title
  column.titleize
end