lib/sigiss/invoice.rb in sigiss-0.1.1 vs lib/sigiss/invoice.rb in sigiss-0.1.2

- old
+ new

@@ -3,17 +3,19 @@ module Sigiss class Invoice include ActiveModel::Validations include Sigiss::Integration - attr_accessor :gateway, :provider, :taker, :data + attr_accessor :gateway, :provider, :taker, :data, :success, :response - validates_presence_of :gateway, :provider, :taker, :data + validates_presence_of :gateway, :provider, :taker, :data, :success, :response def initialize(attributes = {}) @gateway = attributes[:gateway] @provider = attributes[:provider] @taker = attributes[:taker] + @success = false + @response = {} end def build(method, params = {}) case method when :issue