Class: Beslist::API::Connection
- Inherits:
-
Object
- Object
- Beslist::API::Connection
- Includes:
- Requests
- Defined in:
- lib/beslist/connection.rb,
lib/beslist/connection/requests.rb
Defined Under Namespace
Modules: Requests
Instance Attribute Summary collapse
-
#interface ⇒ Object
Returns the value of attribute interface.
-
#options ⇒ Object
Returns the value of attribute options.
Instance Method Summary collapse
- #checksum(*dynamic_parts) ⇒ Object
-
#initialize(options = {}) ⇒ Connection
constructor
A new instance of Connection.
Methods included from Requests
Constructor Details
#initialize(options = {}) ⇒ Connection
Returns a new instance of Connection.
14 15 16 |
# File 'lib/beslist/connection.rb', line 14 def initialize( = {}) @options = end |
Instance Attribute Details
#interface ⇒ Object
Returns the value of attribute interface.
12 13 14 |
# File 'lib/beslist/connection.rb', line 12 def interface @interface end |
#options ⇒ Object
Returns the value of attribute options.
12 13 14 |
# File 'lib/beslist/connection.rb', line 12 def @options end |
Instance Method Details
#checksum(*dynamic_parts) ⇒ Object
26 27 28 29 |
# File 'lib/beslist/connection.rb', line 26 def checksum(*dynamic_parts) base = [:personal_key]+[:client_id]+[:shop_id] Digest::MD5.hexdigest(base+dynamic_parts.join('')) end |