Class: ONIX::ONIX21::SupplyDetail
- Defined in:
- lib/onix/onix21.rb
Instance Method Summary collapse
Methods inherited from SubsetDSL
get_class, ref_to_short, short_to_ref
Methods inherited from SubsetDSL
_ancestor_registered_scopes, _ancestors_registered_elements, ancestor_registered_scopes, ancestors_registered_elements, element, elements, get_class, #initialize, #parse, ref_to_short, registered_elements, registered_scopes, scope, short_to_ref, #unsupported
Methods inherited from Subset
parse, #parse, tag_match, #tag_match, #unsupported
Constructor Details
This class inherits a constructor from ONIX::SubsetDSL
Instance Method Details
#availability_date ⇒ Object
231 232 233 |
# File 'lib/onix/onix21.rb', line 231 def availability_date @on_sale_date end |
#available? ⇒ Boolean
235 236 237 |
# File 'lib/onix/onix21.rb', line 235 def available? @product_availability=="20" or @availability_code == "IP" end |