Class: RubyApp::Session::Identity

Inherits:
Object
  • Object
show all
Includes:
Mixins::HashMixin
Defined in:
lib/ruby_app/session.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Mixins::HashMixin

#method_missing

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

#urlObject (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