Class: Flickry::Tag
- Inherits:
-
String
- Object
- String
- Flickry::Tag
- Defined in:
- lib/flickry/tag.rb
Instance Attribute Summary collapse
-
#author_id ⇒ Object
readonly
Returns the value of attribute author_id.
-
#machine_tag ⇒ Object
readonly
Returns the value of attribute machine_tag.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#tag_id ⇒ Object
readonly
Returns the value of attribute tag_id.
Instance Method Summary collapse
-
#author ⇒ Object
Get a Person record for the author_id.
-
#initialize(tag) ⇒ Tag
constructor
A new instance of Tag.
- #machine_tag? ⇒ Boolean
Constructor Details
#initialize(tag) ⇒ Tag
Returns a new instance of Tag.
4 5 6 7 8 9 10 |
# File 'lib/flickry/tag.rb', line 4 def initialize(tag) super(tag.to_s) @tag_id = tag.id @machine_tag = tag.machine_tag @author_id = tag. @name = self.to_s end |
Instance Attribute Details
#author_id ⇒ Object (readonly)
Returns the value of attribute author_id.
3 4 5 |
# File 'lib/flickry/tag.rb', line 3 def @author_id end |
#machine_tag ⇒ Object (readonly)
Returns the value of attribute machine_tag.
3 4 5 |
# File 'lib/flickry/tag.rb', line 3 def machine_tag @machine_tag end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/flickry/tag.rb', line 3 def name @name end |
#tag_id ⇒ Object (readonly)
Returns the value of attribute tag_id.
3 4 5 |
# File 'lib/flickry/tag.rb', line 3 def tag_id @tag_id end |