Class: Vulcano::CodableKey
- Inherits:
-
Object
- Object
- Vulcano::CodableKey
- Defined in:
- lib/vulcano/codable_key.rb
Instance Attribute Summary collapse
-
#codable_name ⇒ Object
readonly
Returns the value of attribute codable_name.
-
#original_name ⇒ Object
readonly
Returns the value of attribute original_name.
Instance Method Summary collapse
-
#initialize(original_name, codable_name = nil) ⇒ CodableKey
constructor
A new instance of CodableKey.
Constructor Details
#initialize(original_name, codable_name = nil) ⇒ CodableKey
Returns a new instance of CodableKey.
6 7 8 9 |
# File 'lib/vulcano/codable_key.rb', line 6 def initialize(original_name, codable_name = nil) @original_name = original_name @codable_name = codable_name end |
Instance Attribute Details
#codable_name ⇒ Object (readonly)
Returns the value of attribute codable_name.
4 5 6 |
# File 'lib/vulcano/codable_key.rb', line 4 def codable_name @codable_name end |
#original_name ⇒ Object (readonly)
Returns the value of attribute original_name.
3 4 5 |
# File 'lib/vulcano/codable_key.rb', line 3 def original_name @original_name end |