Class: LanguageCards::CompBitz

Inherits:
Object
  • Object
show all
Defined in:
lib/language_cards/comp_bitz.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ CompBitz

Returns a new instance of CompBitz.



4
5
6
7
8
9
10
# File 'lib/language_cards/comp_bitz.rb', line 4

def initialize options
  @display = options.fetch(:display)
  @collection = options.fetch(:collection)
  @expected = options.fetch(:expected)
  @value = options.fetch(:value)
  @mapping = options.fetch(:mapping)
end

Instance Attribute Details

#collectionObject (readonly)

Returns the value of attribute collection.



3
4
5
# File 'lib/language_cards/comp_bitz.rb', line 3

def collection
  @collection
end

#displayObject (readonly)

Returns the value of attribute display.



3
4
5
# File 'lib/language_cards/comp_bitz.rb', line 3

def display
  @display
end

#expectedObject (readonly)

Returns the value of attribute expected.



3
4
5
# File 'lib/language_cards/comp_bitz.rb', line 3

def expected
  @expected
end

#mappingObject (readonly)

Returns the value of attribute mapping.



3
4
5
# File 'lib/language_cards/comp_bitz.rb', line 3

def mapping
  @mapping
end

#valueObject (readonly)

Returns the value of attribute value.



3
4
5
# File 'lib/language_cards/comp_bitz.rb', line 3

def value
  @value
end