lib/kooaba/item.rb in kooaba-0.0.5 vs lib/kooaba/item.rb in kooaba-0.0.6

- old
+ new

@@ -8,10 +8,12 @@ attr_accessor :title attr_accessor :metadata attr_accessor :enabled attr_accessor :reference_id attr_accessor :image_files + attr_accessor :locale + attr_accessor :kind def initialize(options = {}) raise TypeError, "enabled should be true or false" unless [nil, true, false].include? options[:enabled] if !options[:image_files].instance_of?(Array) && options[:image_files] != nil raise TypeError, "image_files must be a list of paths (Array of Strings)" @@ -20,9 +22,11 @@ @title = options[:title] @metadata = options[:metadata] @enabled = options[:enabled] == nil ? true : options[:enabled] @reference_id = options[:reference_id] @image_files = options[:image_files] || [] + @locale = options[:locale] + @kind = options[:kind] end end end