Sha256: 71564f285a2b27be95314493cdf81cf523307d5770a22eeda099fc9dd93b1161

Contents?: true

Size: 371 Bytes

Versions: 3

Compression:

Stored size: 371 Bytes

Contents

module NetSuite
  class Response
    attr_accessor :header, :body, :errors

    def initialize(attributes = {})
      @success  = attributes[:success]
      @header   = attributes[:header]
      @body     = attributes[:body]
      @errors   = attributes[:errors]
    end

    def success!
      @success = true
    end

    def success?
      @success
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
netsuite-0.2.3 lib/netsuite/response.rb
netsuite-0.2.2 lib/netsuite/response.rb
netsuite-0.2.1 lib/netsuite/response.rb