class Pohoda::Parsers::Typ::TypeValidate

Public Instance Methods

in_stock() click to toggle source
# File lib/pohoda/parsers/typ/type_validate.rb, line 7
def in_stock
  at 'typ:inStock'
end
in_stock_attributes() click to toggle source
# File lib/pohoda/parsers/typ/type_validate.rb, line 11
def in_stock_attributes
  attributes_at 'typ:inStock'
end
to_h() click to toggle source
# File lib/pohoda/parsers/typ/type_validate.rb, line 15
def to_h
  hash = {}
  hash[:attributes] = attributes

  hash[:in_stock] = in_stock if has? 'typ:inStock'
  hash[:in_stock_attributes] = in_stock_attributes if has? 'typ:inStock'

  hash
end