Class: GmoServices::Payments::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/gmo_services/payments/base.rb

Direct Known Subclasses

Card, Member

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(params = {}) ⇒ Base

Returns a new instance of Base.



6
7
8
9
10
11
12
13
# File 'lib/gmo_services/payments/base.rb', line 6

def initialize(params = {})
  @site_id = params[:site_id]
  @site_pass = params[:site_pass]
  @shop_id = params[:shop_id]
  @shop_pass = params[:shop_pass]
  @base_api_url = params[:base_api_url]
  @settings = initialize_settings
end

Instance Attribute Details

#base_api_urlObject (readonly)

Returns the value of attribute base_api_url.



4
5
6
# File 'lib/gmo_services/payments/base.rb', line 4

def base_api_url
  @base_api_url
end

#settingsObject (readonly)

Returns the value of attribute settings.



4
5
6
# File 'lib/gmo_services/payments/base.rb', line 4

def settings
  @settings
end

#shop_idObject (readonly)

Returns the value of attribute shop_id.



4
5
6
# File 'lib/gmo_services/payments/base.rb', line 4

def shop_id
  @shop_id
end

#shop_passObject (readonly)

Returns the value of attribute shop_pass.



4
5
6
# File 'lib/gmo_services/payments/base.rb', line 4

def shop_pass
  @shop_pass
end

#site_idObject (readonly)

Returns the value of attribute site_id.



4
5
6
# File 'lib/gmo_services/payments/base.rb', line 4

def site_id
  @site_id
end

#site_passObject (readonly)

Returns the value of attribute site_pass.



4
5
6
# File 'lib/gmo_services/payments/base.rb', line 4

def site_pass
  @site_pass
end