Class: Cerealizer::Key

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

Overview

Encapsulates information about keys.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ Key

Returns a new instance of Key.



8
9
10
# File 'lib/cerealizer.rb', line 8

def initialize(name)
  @name = name
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



6
7
8
# File 'lib/cerealizer.rb', line 6

def name
  @name
end