Class: Freemium::Gateways::Test

Inherits:
Base
  • Object
show all
Defined in:
lib/freemium/gateways/test.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#passwordObject

Returns the value of attribute password.



4
5
6
# File 'lib/freemium/gateways/test.rb', line 4

def password
  @password
end

#usernameObject

Returns the value of attribute username.



4
5
6
# File 'lib/freemium/gateways/test.rb', line 4

def username
  @username
end

Instance Method Details

#cancel(*args) ⇒ Object



26
27
28
# File 'lib/freemium/gateways/test.rb', line 26

def cancel(*args)
  args
end

#charge(*args) ⇒ Object



10
11
12
# File 'lib/freemium/gateways/test.rb', line 10

def charge(*args)
  args
end

#store(*args) ⇒ Object



14
15
16
17
18
# File 'lib/freemium/gateways/test.rb', line 14

def store(*args)
  response = Freemium::Response.new(true)
  response.billing_key = Time.now.to_i.to_s
  response
end

#transactions(options = {}) ⇒ Object



6
7
8
# File 'lib/freemium/gateways/test.rb', line 6

def transactions(options = {})
  options
end

#update(billing_key, *args) ⇒ Object



20
21
22
23
24
# File 'lib/freemium/gateways/test.rb', line 20

def update(billing_key, *args)
  response = Freemium::Response.new(true)
  response.billing_key = billing_key
  response
end

#validate(*args) ⇒ Object



30
31
32
33
# File 'lib/freemium/gateways/test.rb', line 30

def validate(*args)
  response = Freemium::Response.new(true)
  response
end