Class: Ravelry::YarnWeight
Overview
Instance Attribute Summary
Attributes inherited from Data
Instance Method Summary collapse
- #build ⇒ Object
-
#crochet_gauge ⇒ Object
Gets yarn weight’s crochet_gauge from existing ‘data`.
-
#knit_gauge ⇒ Object
Gets yarn weight’s knit_gauge from existing ‘data`.
-
#max_gauge ⇒ Object
Gets yarn weight’s max_gauge from existing ‘data`.
-
#min_gauge ⇒ Object
Gets yarn weight’s min_gauge from existing ‘data`.
-
#name ⇒ Object
Gets yarn weight’s name from existing ‘data`.
-
#ply ⇒ Object
Gets yarn weight’s ply from existing ‘data`.
-
#wpi ⇒ Object
Gets yarn weight’s wpi 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_weight.rb', line 11 def build; end |
#crochet_gauge ⇒ Object
Gets yarn weight’s crochet_gauge from existing ‘data`.
29 30 31 |
# File 'lib/ravelry/yarn_weight.rb', line 29 def crochet_gauge data[:crochet_gauge] end |
#knit_gauge ⇒ Object
Gets yarn weight’s knit_gauge from existing ‘data`.
39 40 41 |
# File 'lib/ravelry/yarn_weight.rb', line 39 def knit_gauge data[:knit_gauge] end |
#max_gauge ⇒ Object
Gets yarn weight’s max_gauge from existing ‘data`.
44 45 46 |
# File 'lib/ravelry/yarn_weight.rb', line 44 def max_gauge data[:max_gauge] end |
#min_gauge ⇒ Object
Gets yarn weight’s min_gauge from existing ‘data`.
19 20 21 |
# File 'lib/ravelry/yarn_weight.rb', line 19 def min_gauge data[:min_gauge] end |
#name ⇒ Object
Gets yarn weight’s name from existing ‘data`.
14 15 16 |
# File 'lib/ravelry/yarn_weight.rb', line 14 def name data[:name] end |
#ply ⇒ Object
Gets yarn weight’s ply from existing ‘data`.
34 35 36 |
# File 'lib/ravelry/yarn_weight.rb', line 34 def ply data[:ply] end |
#wpi ⇒ Object
Gets yarn weight’s wpi from existing ‘data`.
24 25 26 |
# File 'lib/ravelry/yarn_weight.rb', line 24 def wpi data[:wpi] end |