Class: Freee::Deal

Inherits:
Base
  • Object
show all
Defined in:
lib/freee/deal.rb

Instance Attribute Summary

Attributes inherited from Base

#client

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Base

config, #get, #initialize, set_env, #token, #token=

Constructor Details

This class inherits a constructor from Freee::Base

Class Method Details

.list(company_id) ⇒ Object



7
8
9
# File 'lib/freee/deal.rb', line 7

def self.list(company_id)
  Freee.client.get("/api/1/deals?company_id=#{company_id.to_i}")
end

Instance Method Details

#createObject



3
4
5
# File 'lib/freee/deal.rb', line 3

def create
  #client.post('/api//1/deals')
end