Class: HitfoxCouponApi::Configuration
- Inherits:
-
Object
- Object
- HitfoxCouponApi::Configuration
- Defined in:
- lib/hitfox_coupon_api/configuration.rb
Instance Attribute Summary collapse
-
#api_endpoint ⇒ Object
Returns the value of attribute api_endpoint.
-
#api_secret ⇒ Object
Returns the value of attribute api_secret.
-
#api_token ⇒ Object
Returns the value of attribute api_token.
-
#api_version ⇒ Object
Returns the value of attribute api_version.
Instance Method Summary collapse
- #generate_timestamp ⇒ Object
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
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_endpoint ⇒ Object
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_secret ⇒ Object
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_token ⇒ Object
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_version ⇒ Object
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_timestamp ⇒ Object
9 10 11 |
# File 'lib/hitfox_coupon_api/configuration.rb', line 9 def Time.now.strftime("%s") end |