Class: Kooaba::Item

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Item

Returns a new instance of Item.



10
11
12
13
14
15
16
# File 'lib/kooaba/item.rb', line 10

def initialize(options = {})
  @title        = options[:title]
  @metadata     = options[:metadata]
  @enabled      = options[:enabled] || true
  @reference_id = options[:reference_id]
  @image_files  = options[:image_files] || []
end

Instance Attribute Details

#enabledObject

Returns the value of attribute enabled.



6
7
8
# File 'lib/kooaba/item.rb', line 6

def enabled
  @enabled
end

#image_filesObject

Returns the value of attribute image_files.



8
9
10
# File 'lib/kooaba/item.rb', line 8

def image_files
  @image_files
end

#metadataObject

Returns the value of attribute metadata.



5
6
7
# File 'lib/kooaba/item.rb', line 5

def 
  @metadata
end

#reference_idObject

Returns the value of attribute reference_id.



7
8
9
# File 'lib/kooaba/item.rb', line 7

def reference_id
  @reference_id
end

#titleObject

Returns the value of attribute title.



4
5
6
# File 'lib/kooaba/item.rb', line 4

def title
  @title
end