Class: Ravelry::Craft
- Inherits:
-
Object
- Object
- Ravelry::Craft
- Defined in:
- lib/ravelry/craft.rb
Overview
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#permalink ⇒ Object
readonly
Returns the value of attribute permalink.
Instance Method Summary collapse
-
#initialize(data) ⇒ Craft
constructor
A new instance of Craft.
Constructor Details
#initialize(data) ⇒ Craft
Returns a new instance of Craft.
13 14 15 16 |
# File 'lib/ravelry/craft.rb', line 13 def initialize(data) @permalink = data[:permalink] @name = data[:name] end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
11 12 13 |
# File 'lib/ravelry/craft.rb', line 11 def name @name end |
#permalink ⇒ Object (readonly)
Returns the value of attribute permalink.
11 12 13 |
# File 'lib/ravelry/craft.rb', line 11 def permalink @permalink end |