Class: RubyApp::Session::Identity
- Inherits:
-
Object
- Object
- RubyApp::Session::Identity
- Includes:
- Mixins::HashMixin
- Defined in:
- lib/ruby_app/session.rb
Instance Attribute Summary collapse
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
- #[](key) ⇒ Object
-
#initialize(url, data = {}) ⇒ Identity
constructor
A new instance of Identity.
Methods included from Mixins::HashMixin
Constructor Details
#initialize(url, data = {}) ⇒ Identity
Returns a new instance of Identity.
19 20 21 22 |
# File 'lib/ruby_app/session.rb', line 19 def initialize(url, data = {}) @url = url @data = data end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class RubyApp::Mixins::HashMixin
Instance Attribute Details
#url ⇒ Object (readonly)
Returns the value of attribute url.
17 18 19 |
# File 'lib/ruby_app/session.rb', line 17 def url @url end |
Instance Method Details
#[](key) ⇒ Object
24 25 26 |
# File 'lib/ruby_app/session.rb', line 24 def [](key) @data[key] end |