Class: Freee::Item

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

Instance Attribute Summary

Attributes inherited from Base

#client

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Base

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

Constructor Details

This class inherits a constructor from Freee::Base

Class Method Details

.list(company_id) ⇒ Object



7
8
9
10
11
12
# File 'lib/freee/item.rb', line 7

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

Instance Method Details

#createObject



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

def create
  Freee.client.post('/api/1/items', :item, **kwargs)
end