Sha256: f94956e65c75ec85e97613ec83bdb81bd877fb4a74961e96d0320aa8d0473bc9

Contents?: true

Size: 528 Bytes

Versions: 2

Compression:

Stored size: 528 Bytes

Contents

module Shoppr
  class Category
    include ROXML
    xml_convention {|val| val.camelize(:lower) }
    xml_reader :id, :from => '@id', :as => Integer
    xml_reader :name
    xml_reader :category_url, :from => 'categoryURL'
    xml_reader :content_type
    xml_reader :products, :as => [Product], :from => 'items/product'
    xml_reader :offers, :as => [Offer], :from => 'items/offer'
    xml_reader :attributes, :as => [Attribute], :in => 'attributes'
    xml_reader :categories, :as => [Category], :in => 'categories'
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
shoppr-0.1.1 lib/shoppr/category.rb
shoppr-0.1.0 lib/shoppr/category.rb