class Ravelry::Craft

The information used to create `Ravelry::Craft` currently comes from {Ravelry::Pattern} objects.

You should not create `Craft` objects manually; they are all created–and owned–by a {Ravelry::Pattern}.

See {Ravelry::Pattern} for more information about `Pattern` objects.

Attributes

name[R]

Public Class Methods

new(data) click to toggle source
# File lib/ravelry/craft.rb, line 13
def initialize(data)
  @permalink = data[:permalink]
  @name = data[:name]
end