Sha256: 7d47b00a7ba5fadc98923a10f3ca37995c6914c962a6abb3388aebb126d6f6b9

Contents?: true

Size: 1.04 KB

Versions: 10

Compression:

Stored size: 1.04 KB

Contents

module Ravelry

  #  The information used to create `Ravelry::YarnWeight` currently comes from {Ravelry::Pattern} objects.
  #
  # See {Ravelry::Pattern} for more information about `Pattern` objects.
  #
  # This class will be updated in future to perform GET, POST, PUT, and DESTROY requests.
  #
  class YarnWeight < Data

    def build; end

    # Gets yarn weight's name from existing `data`.
    def name
      data[:name]
    end

    # Gets yarn weight's min_gauge from existing `data`.
    def min_gauge
      data[:min_gauge]
    end

    # Gets yarn weight's wpi from existing `data`.
    def wpi
      data[:wpi]
    end

    # Gets yarn weight's crochet_gauge from existing `data`.
    def crochet_gauge
      data[:crochet_gauge]
    end

    # Gets yarn weight's ply from existing `data`.
    def ply
      data[:ply]
    end

    # Gets yarn weight's knit_gauge from existing `data`.
    def knit_gauge
      data[:knit_gauge]
    end

    # Gets yarn weight's max_gauge from existing `data`.
    def max_gauge
      data[:max_gauge]
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
ravelry-0.2.0 lib/ravelry/yarn_weight.rb
ravelry-0.1.0 lib/ravelry/yarn_weight.rb
ravelry-0.0.9 lib/ravelry/yarn_weight.rb
ravelry-0.0.8 lib/ravelry/yarn_weight.rb
ravelry-0.0.7 lib/ravelry/yarn_weight.rb
ravelry-0.0.6 lib/ravelry/yarn_weight.rb
ravelry-0.0.5 lib/ravelry/yarn_weight.rb
ravelry-0.0.4 lib/ravelry/yarn_weight.rb
ravelry-0.0.2 lib/ravelry/yarn_weight.rb
ravelry-0.0.1 lib/ravelry/yarn_weight.rb