Class: Wakame::InstanceCounter

Inherits:
Object
  • Object
show all
Includes:
AttributeHelper
Defined in:
lib/wakame/instance_counter.rb

Direct Known Subclasses

ConstantCounter, TimedCounter

Defined Under Namespace

Classes: OutOfLimitRangeError

Constant Summary

Constants included from AttributeHelper

AttributeHelper::CONVERT_CLASSES, AttributeHelper::PRIMITIVE_CLASSES

Instance Method Summary collapse

Methods included from AttributeHelper

#dump_attrs

Instance Method Details

#bind_resource(resource) ⇒ Object



7
8
9
# File 'lib/wakame/instance_counter.rb', line 7

def bind_resource(resource)
  @resource = resource
end

#instance_countObject

Raises:

  • (NotImplementedError)


15
16
17
# File 'lib/wakame/instance_counter.rb', line 15

def instance_count
  raise NotImplementedError
end

#resourceObject



11
12
13
# File 'lib/wakame/instance_counter.rb', line 11

def resource
  @resource
end