Class: Ravelry::Yarn
Overview
Instance Attribute Summary
Attributes inherited from Data
Instance Method Summary collapse
- #build ⇒ Object
-
#company ⇒ Object
Gets yarn company from existing ‘data`.
-
#company_id ⇒ Object
Gets yarn company_id from existing ‘data`.
-
#fetch_and_parse ⇒ Object
Handles API call and parses JSON response.
-
#name ⇒ Object
Gets yarn name from existing ‘data`.
-
#permalink ⇒ Object
Gets yarn permalink from existing ‘data`.
Methods inherited from Data
Constructor Details
This class inherits a constructor from Ravelry::Data
Instance Method Details
#build ⇒ Object
11 |
# File 'lib/ravelry/yarn.rb', line 11 def build; end |
#company ⇒ Object
Gets yarn company from existing ‘data`.
19 20 21 |
# File 'lib/ravelry/yarn.rb', line 19 def company data[:yarn_company_name] end |
#company_id ⇒ Object
Gets yarn company_id from existing ‘data`.
29 30 31 |
# File 'lib/ravelry/yarn.rb', line 29 def company_id data[:yarn_company_id] end |
#fetch_and_parse ⇒ Object
Handles API call and parses JSON response.
34 35 36 |
# File 'lib/ravelry/yarn.rb', line 34 def fetch_and_parse # TODO end |
#name ⇒ Object
Gets yarn name from existing ‘data`.
24 25 26 |
# File 'lib/ravelry/yarn.rb', line 24 def name data[:name] end |
#permalink ⇒ Object
Gets yarn permalink from existing ‘data`.
14 15 16 |
# File 'lib/ravelry/yarn.rb', line 14 def permalink data[:permalink] end |