Skip to content

Commit

Permalink
added new APAProduct#price method
Browse files Browse the repository at this point in the history
  • Loading branch information
yob committed Apr 22, 2009
1 parent a6c2322 commit fce6462
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG
@@ -1,3 +1,6 @@
v0.6.4 (Unrelease)
- Add APAProduct#price

v0.6.3(Unreleased)
- Bump ROXML dependency to 2.5.3 to get libxml-ruby 1.1.3 compatibility

Expand Down
2 changes: 1 addition & 1 deletion lib/onix.rb
Expand Up @@ -14,7 +14,7 @@ module ONIX
module Version #:nodoc:
Major = 0
Minor = 6
Tiny = 3
Tiny = 4

String = [Major, Minor, Tiny].join('.')
end
Expand Down
6 changes: 6 additions & 0 deletions lib/onix/apa_product.rb
Expand Up @@ -408,6 +408,12 @@ def rrp_inc_sales_tax=(num)
price_set(2, num)
end

# just get the first price we can find, regardless of the type.
# useful as a backup for reading files from that don't contain a type
def price
price_get(nil).andand.price_amount
end

# retrieve the height of the product
#
# If APAProduct#measurement_system is metric, these will be in mm, otherwise they
Expand Down

0 comments on commit fce6462

Please sign in to comment.