class Octobat::Transaction
Public Class Methods
csv_export(params = {}, opts={})
click to toggle source
# File lib/octobat/transaction.rb, line 11 def self.csv_export(params = {}, opts={}) api_key, headers = Util.parse_opts(opts) api_key ||= @api_key opts[:api_key] = api_key instance = self.new(nil, opts) response, api_key = Octobat.request(:post, url + '/csv_export', api_key, params) return true end
Public Instance Methods
items(params = {}, opts = {})
click to toggle source
# File lib/octobat/transaction.rb, line 7 def items(params = {}, opts = {}) Item.list(params.merge({ :transaction => id }), {api_key: @api_key}.merge(opts)) end