Class: SixSaferpay::Bankcontact

Inherits:
Object
  • Object
show all
Defined in:
lib/six_saferpay/models/bankcontact.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(app_default_redirect_url: nil, app_completion_redirect_url: nil) ⇒ Bankcontact

Returns a new instance of Bankcontact.



7
8
9
10
# File 'lib/six_saferpay/models/bankcontact.rb', line 7

def initialize(app_default_redirect_url: nil, app_completion_redirect_url: nil)
  @app_default_redirect_url = app_default_redirect_url
  @app_completion_redirect_url = app_completion_redirect_url
end

Instance Attribute Details

#app_completion_redirect_urlObject

Returns the value of attribute app_completion_redirect_url.



4
5
6
# File 'lib/six_saferpay/models/bankcontact.rb', line 4

def app_completion_redirect_url
  @app_completion_redirect_url
end

#app_default_redirect_urlObject

Returns the value of attribute app_default_redirect_url.



4
5
6
# File 'lib/six_saferpay/models/bankcontact.rb', line 4

def app_default_redirect_url
  @app_default_redirect_url
end

Instance Method Details

#to_hashObject Also known as: to_h



12
13
14
15
16
17
# File 'lib/six_saferpay/models/bankcontact.rb', line 12

def to_hash
  hash = Hash.new
  hash.merge!(app_default_redirect_url: @app_default_redirect_url) if @app_default_redirect_url
  hash.merge!(app_completion_redirect_url: @app_completion_redirect_url) if @app_completion_redirect_url
  hash
end