Class: Reporter::Scope::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/reporter/scope/base.rb

Direct Known Subclasses

ReferenceScope

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(scoping, name, data_source, mappings) ⇒ Base

Returns a new instance of Base.



3
4
5
6
7
8
9
# File 'lib/reporter/scope/base.rb', line 3

def initialize scoping, name, data_source, mappings
	@data_source = data_source
	@scoping = scoping
	@name = name
	@mappings = scoping.normalize_mapping mappings
	@limit = nil
end

Instance Attribute Details

#limitObject

Returns the value of attribute limit.



31
32
33
# File 'lib/reporter/scope/base.rb', line 31

def limit
  @limit
end

#mappingsObject (readonly)

Returns the value of attribute mappings.



31
32
33
# File 'lib/reporter/scope/base.rb', line 31

def mappings
  @mappings
end

#nameObject (readonly)

Returns the value of attribute name.



31
32
33
# File 'lib/reporter/scope/base.rb', line 31

def name
  @name
end

Instance Method Details

#apply_on(source) ⇒ Object

Raises:

  • (NotImplementedError)


23
24
25
# File 'lib/reporter/scope/base.rb', line 23

def apply_on source
	raise NotImplementedError
end

#change(value) ⇒ Object

Raises:

  • (NotImplementedError)


15
16
17
# File 'lib/reporter/scope/base.rb', line 15

def change value
	raise NotImplementedError
end

#iterate(&block) ⇒ Object

Raises:

  • (NotImplementedError)


27
28
29
# File 'lib/reporter/scope/base.rb', line 27

def iterate &block
	raise NotImplementedError
end

#valueObject

Raises:

  • (NotImplementedError)


19
20
21
# File 'lib/reporter/scope/base.rb', line 19

def value
	raise NotImplementedError
end