Skip to content

Conversation

@iloveitaly
Copy link
Member

No description provided.

initialize_from_attributes_hash(attributes)
end

def self.search_class_name
Copy link
Member Author

Choose a reason for hiding this comment

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

No need for a search_Class_name here... this is auto-generated. This is only required when the search name is different from the class name.

@jheth jheth force-pushed the opportunity-record branch 3 times, most recently from 4272c18 to 3932720 Compare October 5, 2015 14:50
@@ -0,0 +1,30 @@
module NetSuite
module Records
class OpportunityItemList < Support::Sublist
Copy link
Member Author

Choose a reason for hiding this comment

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

@jheth OpportunityItemList shouldn't contain any logic aside a namespace definition and a sublist call. Ex:

include Namespaces::TranSales
sublist :item, InvoiceItem

@iloveitaly
Copy link
Member Author

Looking good! One additional comment: any new records should be added to the basic record spec:

https://github.com/NetSweet/netsuite/blob/master/spec/netsuite/records/basic_record_spec.rb

@jheth jheth force-pushed the opportunity-record branch from 3932720 to 5a3aa37 Compare October 5, 2015 16:41
@jheth jheth force-pushed the opportunity-record branch from 5a3aa37 to 518264d Compare October 6, 2015 14:32
@jheth
Copy link
Contributor

jheth commented Oct 6, 2015

Thanks @iloveitaly. Just added to basic_record_spec. Should I add an opportunity_spec.rb as well?

@iloveitaly
Copy link
Member Author

Should I add an opportunity_spec.rb as well?

I've been bearish on individual specs for records. I'm fine with just a basic_record_spec entry.

If there is no unique record functionality, they add a lot of maintinance weight with very little value. What do you think?

Thanks for the PR!

@iloveitaly
Copy link
Member Author

Merged with 371baf9

@iloveitaly iloveitaly closed this Oct 8, 2015
@jheth jheth deleted the opportunity-record branch October 15, 2015 14:34
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