Class: ActiveState::Base

Inherits:
Object
  • Object
show all
Includes:
ActiveModel::Validations
Defined in:
lib/active_state/base.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(context) ⇒ Base

Returns a new instance of Base.



7
8
9
# File 'lib/active_state/base.rb', line 7

def initialize(context)
  @context = context
end

Instance Attribute Details

#contextObject (readonly)

Returns the value of attribute context.



5
6
7
# File 'lib/active_state/base.rb', line 5

def context
  @context
end

Instance Method Details

#state_nameObject



11
12
13
# File 'lib/active_state/base.rb', line 11

def state_name
  self.class.name.demodulize
end