Class: Dyn::Traffic::Session
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
- #create ⇒ Object
- #delete ⇒ Object
-
#initialize(dyn) ⇒ Session
constructor
A new instance of Session.
Methods inherited from Base
#discard_change_set, #freeze, #get_change_set, #publish, #thaw
Constructor Details
#initialize(dyn) ⇒ Session
Returns a new instance of Session.
24 25 26 |
# File 'lib/dyn/traffic/session.rb', line 24 def initialize(dyn) @dyn = dyn end |
Instance Method Details
#create ⇒ Object
28 29 30 |
# File 'lib/dyn/traffic/session.rb', line 28 def create @dyn.post('Session', { 'customer_name' => @dyn.customer_name, 'user_name' => @dyn.user_name, 'password' => @dyn.password }, {}) end |
#delete ⇒ Object
32 33 34 |
# File 'lib/dyn/traffic/session.rb', line 32 def delete @dyn.delete('Session') end |