0.0
No commit activity in last 3 years
No release in over 3 years
ActiveNetsuite to Netsuite is what ActiveRecord to RDBMS.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 0.7
~> 0.6.9
~> 0.9
~> 2.14
~> 0.8
~> 1.17

Runtime

 Project Readme

Build Status Code Climate Coverage Status

ActiveNetsuite

NetSuite Object Mapper.

Description

ActiveNetsuite to Netsuite is what ActiveRecord to RDMBS - an OO facade.

Installation

gem install activenetsuite

Usage

require 'activenetsuite'

include ActiveNetsuite

# Connect
Record.client = Client.new(
  account_id: <YOUR NETSUITE ACCOUNT ID>,
  email: <YOUR NETSUITE EMAIL>,
  password: <YOUR NETSUITE PASSWORD>
)

# Create Partner
partner = Partner.new
partner.entity_id = 'john_doe'
partner.first_name = 'John'
partner.last_name = 'Doe'
partner.is_person = true
res = partner.add

res.success? # => true
partner.internal_id # => internal_id assigned by NetSuite

# Find it

# By entity_id
partner = Partner.find_by(entity_id: 'john_doe')

# By internal_id
partner = Partner.find_by_internal_id(partner.internal_id)

# All whose last name starts with 'doe'
partners = Partner.where(:last_name, :starts_with, 'doe').to_a

License

Released under the MIT License.