Sha256: 0885ed98c1742643a526494b054aac04044315f4927fe099a3c421bd17df1779

Contents?: true

Size: 892 Bytes

Versions: 11

Compression:

Stored size: 892 Bytes

Contents

module GenesisRuby
  module Api
    module Mixins
      module Requests
        module Financial
          # Mixin Async Attributes
          module AsyncAttributes

            attr_reader :return_success_url, :return_failure_url

            # Return Success URL setter
            def return_success_url=(value)
              unless GenesisRuby::Utils::Common.valid_url?(value)
                raise ParameterError, "Invalid URL given for #{__method__}"
              end

              @return_success_url = value
            end

            # Return Failure URL setter
            def return_failure_url=(value)
              unless GenesisRuby::Utils::Common.valid_url?(value)
                raise ParameterError, "Invalid URL given for #{__method__}"
              end

              @return_failure_url = value
            end

          end
        end
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
genesis_ruby-0.2.0 lib/genesis_ruby/api/mixins/requests/financial/async_attributes.rb
genesis_ruby-0.1.9 lib/genesis_ruby/api/mixins/requests/financial/async_attributes.rb
genesis_ruby-0.1.8 lib/genesis_ruby/api/mixins/requests/financial/async_attributes.rb
genesis_ruby-0.1.7 lib/genesis_ruby/api/mixins/requests/financial/async_attributes.rb
genesis_ruby-0.1.6 lib/genesis_ruby/api/mixins/requests/financial/async_attributes.rb
genesis_ruby-0.1.5 lib/genesis_ruby/api/mixins/requests/financial/async_attributes.rb
genesis_ruby-0.1.4 lib/genesis_ruby/api/mixins/requests/financial/async_attributes.rb
genesis_ruby-0.1.3 lib/genesis_ruby/api/mixins/requests/financial/async_attributes.rb
genesis_ruby-0.1.2 lib/genesis_ruby/api/mixins/requests/financial/async_attributes.rb
genesis_ruby-0.1.1 lib/genesis_ruby/api/mixins/requests/financial/async_attributes.rb
genesis_ruby-0.1.0 lib/genesis_ruby/api/mixins/requests/financial/async_attributes.rb