Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing records #63

Closed
wants to merge 6 commits into from
Closed

Add missing records #63

wants to merge 6 commits into from

Conversation

develon
Copy link

@develon develon commented Apr 16, 2014

Hello,
I just added basic support for some missing SureTalk Records, and their related namespaces:

Give me some time to add specs...
Thanks a lot!

Lino

@@ -11,6 +11,7 @@ def attributes=(attributes)
end

def initialize_from_attributes_hash(attributes = {})
attributes ||= {}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you give me some more information as to why this was needed? I haven't encountered any issues with this method in any of the other records in the gem.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I sometimes experienced exceptions like:

[GEM_ROOT]/bundler/gems/netsuite-91c78614e5eb/lib/netsuite/support/attributes.rb:14→ initialize_from_attributes_hash
[GEM_ROOT]/bundler/gems/netsuite-91c78614e5eb/lib/netsuite/records/base_ref_list.rb:15→ initialize
[GEM_ROOT]/bundler/gems/netsuite-91c78614e5eb/lib/netsuite/actions/get_select_value.rb:51→ new
[GEM_ROOT]/bundler/gems/netsuite-91c78614e5eb/lib/netsuite/actions/get_select_value.rb:51→ get_select_value

There probably are conditions where and explicit value is passed, such as when an exception is thrown on the remote side (eg when two concurrent calls are made with the same credentials).
Maybe using a different approach (http://apidock.com/rails/ActiveSupport/CoreExtensions/Array/ExtractOptions/extract_options!) could be a better solution?

Lino Moretto added 2 commits October 3, 2014 18:02
Conflicts:
	lib/netsuite.rb
	lib/netsuite/configuration.rb
	lib/netsuite/records/job.rb
@iloveitaly
Copy link
Member

@develon closing this out! Feel free to rebase and reopen!

@iloveitaly iloveitaly closed this Feb 11, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants