Class: Toy::CardHyper

Inherits:
Object
  • Object
show all
Defined in:
lib/toy/dev/toy_card.rb

Overview

One ‘key=value` entry in the Hyper line.

add_hyper("D", "768")  →  contributes " D=768" to the Hyper line.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key, value) ⇒ CardHyper

Returns a new instance of CardHyper.



54
55
56
57
# File 'lib/toy/dev/toy_card.rb', line 54

def initialize(key, value)
  @key   = key
  @value = value
end

Instance Attribute Details

#keyObject

Returns the value of attribute key.



52
53
54
# File 'lib/toy/dev/toy_card.rb', line 52

def key
  @key
end

#valueObject

Returns the value of attribute value.



52
53
54
# File 'lib/toy/dev/toy_card.rb', line 52

def value
  @value
end