Class: Tag

Inherits:
Object
  • Object
show all
Defined in:
lib/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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(options={})
  @name = options[:name]
  @slug = options[:slug]
  @color = options[:color]
  @position = options[:position]
end

Instance Attribute Details

#colorObject (readonly)

Returns the value of attribute color.



727
728
729
# File 'lib/configuration.rb', line 727

def color
  @color
end

#nameObject (readonly)

Returns the value of attribute name.



725
726
727
# File 'lib/configuration.rb', line 725

def name
  @name
end

#positionObject (readonly)

Returns the value of attribute position.



728
729
730
# File 'lib/configuration.rb', line 728

def position
  @position
end

#slugObject (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_pathObject



730
731
732
# File 'lib/configuration.rb', line 730

def to_partial_path
  "tags/tag"
end