Module: Myclear

Defined in:
lib/myclear.rb,
lib/myclear/sign.rb,
lib/myclear/utils.rb,
lib/myclear/service.rb,
lib/myclear/version.rb

Defined Under Namespace

Modules: Service, Sign, Utils

Constant Summary collapse

VERSION =
"0.1.0"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.debug_modeObject

Returns the value of attribute debug_mode.



14
15
16
# File 'lib/myclear.rb', line 14

def debug_mode
  @debug_mode
end

.digest_typeObject

Returns the value of attribute digest_type.



15
16
17
# File 'lib/myclear.rb', line 15

def digest_type
  @digest_type
end

.fpx_certificationObject

Returns the value of attribute fpx_certification.



16
17
18
# File 'lib/myclear.rb', line 16

def fpx_certification
  @fpx_certification
end

.fpx_standby_certificationObject

Returns the value of attribute fpx_standby_certification.



16
17
18
# File 'lib/myclear.rb', line 16

def fpx_standby_certification
  @fpx_standby_certification
end

.fpx_versionObject

Returns the value of attribute fpx_version.



15
16
17
# File 'lib/myclear.rb', line 15

def fpx_version
  @fpx_version
end

.private_keyObject

Returns the value of attribute private_key.



16
17
18
# File 'lib/myclear.rb', line 16

def private_key
  @private_key
end

.seller_exchange_idObject

Returns the value of attribute seller_exchange_id.



17
18
19
# File 'lib/myclear.rb', line 17

def seller_exchange_id
  @seller_exchange_id
end

.seller_idObject

Returns the value of attribute seller_id.



17
18
19
# File 'lib/myclear.rb', line 17

def seller_id
  @seller_id
end

.uatObject

Returns the value of attribute uat.



14
15
16
# File 'lib/myclear.rb', line 14

def uat
  @uat
end

Class Method Details

.debug_mode?Boolean

Returns:

  • (Boolean)


19
20
21
# File 'lib/myclear.rb', line 19

def debug_mode?
  !!@debug_mode
end

.service_hostObject



27
28
29
# File 'lib/myclear.rb', line 27

def service_host
  uat? ? 'https://uat.mepsfpx.com.my' : 'https://mepsfpx.com.my'
end

.uat?Boolean

Returns:

  • (Boolean)


23
24
25
# File 'lib/myclear.rb', line 23

def uat?
  !!@uat
end