Class: SiteHub::Cookie::Flag
- Inherits:
-
Object
- Object
- SiteHub::Cookie::Flag
- Includes:
- Equality
- Defined in:
- lib/sitehub/cookie/flag.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(flag) ⇒ Flag
constructor
A new instance of Flag.
- #to_s ⇒ Object
Methods included from Equality
Constructor Details
#initialize(flag) ⇒ Flag
Returns a new instance of Flag.
9 10 11 |
# File 'lib/sitehub/cookie/flag.rb', line 9 def initialize(flag) @name = StringUtils.sanitise(flag).to_sym end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
7 8 9 |
# File 'lib/sitehub/cookie/flag.rb', line 7 def name @name end |
Instance Method Details
#to_s ⇒ Object
13 14 15 |
# File 'lib/sitehub/cookie/flag.rb', line 13 def to_s name.to_s end |