Class: Sapphire::DSL::Coverage::Behavior

Inherits:
Object
  • Object
show all
Defined in:
lib/sapphire/DSL/Coverage/Behavior.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(token, hash) ⇒ Behavior

Returns a new instance of Behavior.



15
16
17
18
# File 'lib/sapphire/DSL/Coverage/Behavior.rb', line 15

def initialize(token, hash)
  @token = token
  @type = hash[hash.keys.first]
end

Instance Attribute Details

#covered_byObject

Returns the value of attribute covered_by.



13
14
15
# File 'lib/sapphire/DSL/Coverage/Behavior.rb', line 13

def covered_by
  @covered_by
end

#is_coveredObject

Returns the value of attribute is_covered.



12
13
14
# File 'lib/sapphire/DSL/Coverage/Behavior.rb', line 12

def is_covered
  @is_covered
end

#tokenObject (readonly)

Returns the value of attribute token.



10
11
12
# File 'lib/sapphire/DSL/Coverage/Behavior.rb', line 10

def token
  @token
end

#typeObject (readonly)

Returns the value of attribute type.



11
12
13
# File 'lib/sapphire/DSL/Coverage/Behavior.rb', line 11

def type
  @type
end