Class: Tag
- Inherits:
-
Object
- Object
- Tag
- Defined in:
- lib/configuration.rb
Instance Attribute Summary collapse
-
#color ⇒ Object
readonly
Returns the value of attribute color.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#position ⇒ Object
readonly
Returns the value of attribute position.
-
#slug ⇒ Object
readonly
Returns the value of attribute slug.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Tag
constructor
A new instance of Tag.
- #to_partial_path ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ Tag
Returns a new instance of Tag.
718 719 720 721 722 723 |
# File 'lib/configuration.rb', line 718 def initialize(={}) @name = [:name] @slug = [:slug] @color = [:color] @position = [:position] end |
Instance Attribute Details
#color ⇒ Object (readonly)
Returns the value of attribute color.
727 728 729 |
# File 'lib/configuration.rb', line 727 def color @color end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
725 726 727 |
# File 'lib/configuration.rb', line 725 def name @name end |
#position ⇒ Object (readonly)
Returns the value of attribute position.
728 729 730 |
# File 'lib/configuration.rb', line 728 def position @position end |
#slug ⇒ Object (readonly)
Returns the value of attribute slug.
726 727 728 |
# File 'lib/configuration.rb', line 726 def slug @slug end |
Instance Method Details
#to_partial_path ⇒ Object
730 731 732 |
# File 'lib/configuration.rb', line 730 def to_partial_path "tags/tag" end |