class NetSuite::Response
Attributes
body[RW]
errors[RW]
header[RW]
Public Class Methods
new(attributes = {})
click to toggle source
# File lib/netsuite/response.rb, line 5 def initialize(attributes = {}) @success = attributes[:success] @header = attributes[:header] @body = attributes[:body] @errors = attributes[:errors] || [] end
Public Instance Methods
success!()
click to toggle source
# File lib/netsuite/response.rb, line 12 def success! @success = true end
success?()
click to toggle source
# File lib/netsuite/response.rb, line 16 def success? @success end