Class: ContentItem

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nameObject (readonly)

Returns the value of attribute name.



14
15
16
# File 'lib/content.rb', line 14

def name
  @name
end

#typeObject (readonly)

Returns the value of attribute type.



14
15
16
# File 'lib/content.rb', line 14

def type
  @type
end

#uuidObject (readonly)

Returns the value of attribute uuid.



14
15
16
# File 'lib/content.rb', line 14

def uuid
  @uuid
end