netsuite 0.0.6 → 0.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -10,7 +10,7 @@ module NetSuite
10
10
 
11
11
  def fields(*args)
12
12
  if args.empty?
13
- @fields ||= {}
13
+ @fields ||= Set.new
14
14
  else
15
15
  args.each do |arg|
16
16
  field arg
@@ -20,7 +20,7 @@ module NetSuite
20
20
 
21
21
  def field(name)
22
22
  name_sym = name.to_sym
23
- (@fields ||= Set.new) << name_sym
23
+ fields << name_sym
24
24
  define_method(name_sym) do
25
25
  attributes[name_sym]
26
26
  end
@@ -15,6 +15,7 @@ module NetSuite
15
15
 
16
16
  def record_ref(name)
17
17
  name_sym = name.to_sym
18
+ fields << name_sym
18
19
  define_method "#{name}=" do |attrs|
19
20
  attributes[name_sym] = NetSuite::Records::RecordRef.new(attrs)
20
21
  end
@@ -10,7 +10,7 @@ module NetSuite
10
10
  :consol_aging, :consol_balance, :consol_days_overdue, :consol_deposit_balance, :consol_overdue_balance,
11
11
  :consol_unbilled_orders, :contact_roles_list, :contrib_pct, :credit_cards_list, :credit_hold_override, :credit_limit,
12
12
  :currency, :currency_list, :custom_field_list, :date_created, :days_overdue, :default_address,
13
- :deposit_balance, :download_list, :email, :email_preference, :email_transactions, :end_date, :entity_id, :entity_status,
13
+ :deposit_balance, :download_list, :email, :email_preference, :email_transactions, :end_date, :entity_id,
14
14
  :estimated_budget, :fax, :fax_transactions, :first_name, :first_visit, :give_access, :global_subscription_status,
15
15
  :group_pricing_list, :home_phone, :image, :is_budget_approved, :is_inactive, :is_person, :item_pricing_list, :keywords,
16
16
  :language, :last_modified, :last_name, :last_page_visited, :last_visit, :lead_source, :middle_name, :mobile_phone,
@@ -1,3 +1,3 @@
1
1
  module Netsuite
2
- VERSION = '0.0.6'
2
+ VERSION = '0.0.7'
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: netsuite
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 6
10
- version: 0.0.6
9
+ - 7
10
+ version: 0.0.7
11
11
  platform: ruby
12
12
  authors:
13
13
  - Ryan Moran