module Tradenity
#Tradenity API
#Tradenity eCommerce Rest API
Contact: support@tradenity.com Generated by: github.com/tradenity
end¶ ↑
#Tradenity API
#Tradenity eCommerce Rest API
Contact: support@tradenity.com Generated by: github.com/tradenity
end¶ ↑
Constants
- VERSION
Public Class Methods
configure() { |default| ... }
click to toggle source
Customize default settings for the SDK using block.
Tradenity.configure do |config| config.username = "xxx" config.password = "xxx" end
If no block given, return the default Configuration
object.
# File lib/tradenity.rb, line 109 def configure if block_given? yield(Configuration.default) else Configuration.default end end
Public Instance Methods
valid_password?(password, test_password)
click to toggle source
# File lib/tradenity/resources/utils.rb, line 4 def valid_password?(password, test_password) BCrypt::Password.new(password) == test_password end