Class: HitfoxCouponApi::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/hitfox_coupon_api/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



5
6
7
# File 'lib/hitfox_coupon_api/configuration.rb', line 5

def initialize
  @api_version = "1"
end

Instance Attribute Details

#api_endpointObject

Returns the value of attribute api_endpoint.



3
4
5
# File 'lib/hitfox_coupon_api/configuration.rb', line 3

def api_endpoint
  @api_endpoint
end

#api_secretObject

Returns the value of attribute api_secret.



3
4
5
# File 'lib/hitfox_coupon_api/configuration.rb', line 3

def api_secret
  @api_secret
end

#api_tokenObject

Returns the value of attribute api_token.



3
4
5
# File 'lib/hitfox_coupon_api/configuration.rb', line 3

def api_token
  @api_token
end

#api_versionObject

Returns the value of attribute api_version.



3
4
5
# File 'lib/hitfox_coupon_api/configuration.rb', line 3

def api_version
  @api_version
end

Instance Method Details

#generate_timestampObject



9
10
11
# File 'lib/hitfox_coupon_api/configuration.rb', line 9

def generate_timestamp
  Time.now.strftime("%s")
end