Class: Bnicovideo::Tag
- Inherits:
-
Object
- Object
- Bnicovideo::Tag
- Defined in:
- lib/bnicovideo/tag.rb
Overview
The tag class
Instance Attribute Summary collapse
-
#category ⇒ Object
readonly
True if tag is the category tag.
-
#locked ⇒ Object
readonly
True if tag is locked.
-
#name ⇒ Object
readonly
Tag name.
Instance Method Summary collapse
-
#initialize(name, locked = false, category = false) ⇒ Tag
constructor
Initialize from name, locked and whether this tag is category.
Constructor Details
#initialize(name, locked = false, category = false) ⇒ Tag
Initialize from name, locked and whether this tag is category.
- name
-
Tag name
- locked
-
Whether this tag is locked
- category
-
Whether this tag is the category tag.
18 19 20 21 22 |
# File 'lib/bnicovideo/tag.rb', line 18 def initialize(name, locked = false, category = false) @name = name @locked = locked @category = category end |
Instance Attribute Details
#category ⇒ Object (readonly)
True if tag is the category tag
13 14 15 |
# File 'lib/bnicovideo/tag.rb', line 13 def category @category end |
#locked ⇒ Object (readonly)
True if tag is locked
11 12 13 |
# File 'lib/bnicovideo/tag.rb', line 11 def locked @locked end |
#name ⇒ Object (readonly)
Tag name
9 10 11 |
# File 'lib/bnicovideo/tag.rb', line 9 def name @name end |