Class: ContentItem
- Inherits:
-
Object
- Object
- ContentItem
- Defined in:
- lib/content.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
-
#uuid ⇒ Object
readonly
Returns the value of attribute uuid.
Instance Method Summary collapse
-
#initialize(item) ⇒ ContentItem
constructor
A new instance of ContentItem.
Constructor Details
#initialize(item) ⇒ ContentItem
Returns a new instance of ContentItem.
16 17 18 |
# File 'lib/content.rb', line 16 def initialize(item) @uuid, @type, @name, @url, @timestamp, @folder, @strength, @trashed = item end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
14 15 16 |
# File 'lib/content.rb', line 14 def name @name end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
14 15 16 |
# File 'lib/content.rb', line 14 def type @type end |
#uuid ⇒ Object (readonly)
Returns the value of attribute uuid.
14 15 16 |
# File 'lib/content.rb', line 14 def uuid @uuid end |