Class: LanguageCards::CompBitz
- Inherits:
-
Object
- Object
- LanguageCards::CompBitz
- Defined in:
- lib/language_cards/comp_bitz.rb
Instance Attribute Summary collapse
-
#collection ⇒ Object
readonly
Returns the value of attribute collection.
-
#display ⇒ Object
readonly
Returns the value of attribute display.
-
#expected ⇒ Object
readonly
Returns the value of attribute expected.
-
#mapping ⇒ Object
readonly
Returns the value of attribute mapping.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(options) ⇒ CompBitz
constructor
A new instance of CompBitz.
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 @display = .fetch(:display) @collection = .fetch(:collection) @expected = .fetch(:expected) @value = .fetch(:value) @mapping = .fetch(:mapping) end |
Instance Attribute Details
#collection ⇒ Object (readonly)
Returns the value of attribute collection.
3 4 5 |
# File 'lib/language_cards/comp_bitz.rb', line 3 def collection @collection end |
#display ⇒ Object (readonly)
Returns the value of attribute display.
3 4 5 |
# File 'lib/language_cards/comp_bitz.rb', line 3 def display @display end |
#expected ⇒ Object (readonly)
Returns the value of attribute expected.
3 4 5 |
# File 'lib/language_cards/comp_bitz.rb', line 3 def expected @expected end |
#mapping ⇒ Object (readonly)
Returns the value of attribute mapping.
3 4 5 |
# File 'lib/language_cards/comp_bitz.rb', line 3 def mapping @mapping end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
3 4 5 |
# File 'lib/language_cards/comp_bitz.rb', line 3 def value @value end |