class Ravelry::YarnWeight
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.
Public Instance Methods
build()
click to toggle source
# File lib/ravelry/yarn_weight.rb, line 11 def build; end
crochet_gauge()
click to toggle source
Gets yarn weight's crochet_gauge
from existing `data`.
# File lib/ravelry/yarn_weight.rb, line 29 def crochet_gauge data[:crochet_gauge] end
knit_gauge()
click to toggle source
Gets yarn weight's knit_gauge
from existing `data`.
# File lib/ravelry/yarn_weight.rb, line 39 def knit_gauge data[:knit_gauge] end
max_gauge()
click to toggle source
Gets yarn weight's max_gauge
from existing `data`.
# File lib/ravelry/yarn_weight.rb, line 44 def max_gauge data[:max_gauge] end
min_gauge()
click to toggle source
Gets yarn weight's min_gauge
from existing `data`.
# File lib/ravelry/yarn_weight.rb, line 19 def min_gauge data[:min_gauge] end
name()
click to toggle source
Gets yarn weight's name from existing `data`.
# File lib/ravelry/yarn_weight.rb, line 14 def name data[:name] end
ply()
click to toggle source
Gets yarn weight's ply from existing `data`.
# File lib/ravelry/yarn_weight.rb, line 34 def ply data[:ply] end
wpi()
click to toggle source
Gets yarn weight's wpi from existing `data`.
# File lib/ravelry/yarn_weight.rb, line 24 def wpi data[:wpi] end