class Harvest::InvoiceCategory

Public Class Methods

json_root() click to toggle source
# File lib/harvest/invoice_category.rb, line 6
def self.json_root; "invoice_item_category"; end
parse(json) click to toggle source
# File lib/harvest/invoice_category.rb, line 9
def parse(json)
  parsed = String === json ? JSON.parse(json) : json
  Array.wrap(parsed).map {|attrs| new(attrs["invoice_category"])}
end