Sha256: d60d667dc4196c5b88da67523b928c73e95631ec64c673fec347c10df70ad639
Contents?: true
Size: 831 Bytes
Versions: 10
Compression:
Stored size: 831 Bytes
Contents
module Ravelry # 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. # class Yarn < Data def build; end # Gets yarn permalink from existing `data`. def permalink data[:permalink] end # Gets yarn company from existing `data`. def company data[:yarn_company_name] end # Gets yarn name from existing `data`. def name data[:name] end # Gets yarn company_id from existing `data`. def company_id data[:yarn_company_id] end # Handles API call and parses JSON response. def fetch_and_parse # TODO end end end
Version data entries
10 entries across 10 versions & 1 rubygems