Class: Bnicovideo::Tag

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

Overview

The tag class

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#categoryObject (readonly)

True if tag is the category tag



13
14
15
# File 'lib/bnicovideo/tag.rb', line 13

def category
  @category
end

#lockedObject (readonly)

True if tag is locked



11
12
13
# File 'lib/bnicovideo/tag.rb', line 11

def locked
  @locked
end

#nameObject (readonly)

Tag name



9
10
11
# File 'lib/bnicovideo/tag.rb', line 9

def name
  @name
end