class Ravelry::Yarn

The information used to create `Ravelry::Yarn` 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.

Public Instance Methods

build() click to toggle source
# File lib/ravelry/yarn.rb, line 11
def build; end
company() click to toggle source

Gets yarn company from existing `data`.

# File lib/ravelry/yarn.rb, line 19
def company
  data[:yarn_company_name]
end
company_id() click to toggle source

Gets yarn company_id from existing `data`.

# File lib/ravelry/yarn.rb, line 29
def company_id
  data[:yarn_company_id]
end
fetch_and_parse() click to toggle source

Handles API call and parses JSON response.

# File lib/ravelry/yarn.rb, line 34
def fetch_and_parse
  # TODO
end
name() click to toggle source

Gets yarn name from existing `data`.

# File lib/ravelry/yarn.rb, line 24
def name
  data[:name]
end