Class: Ravelry::Pack

Inherits:
Data
  • Object
show all
Defined in:
lib/ravelry/pack.rb

Overview

The information used to create ‘Ravelry::Pack` currently comes from Pattern objects.

See Pattern for more information about ‘Pattern` objects.

This class will be updated in future to perform GET, POST, PUT, and DESTROY requests.

Instance Attribute Summary

Attributes inherited from Data

#data

Instance Method Summary collapse

Methods inherited from Data

#initialize

Constructor Details

This class inherits a constructor from Ravelry::Data

Instance Method Details

#buildObject



11
# File 'lib/ravelry/pack.rb', line 11

def build; end

#color_family_idObject

Gets color_family_id from existing ‘data`.



74
75
76
# File 'lib/ravelry/pack.rb', line 74

def color_family_id
  data[:color_family_id]
end

#colorwayObject

Gets colorway from existing ‘data`.



109
110
111
# File 'lib/ravelry/pack.rb', line 109

def colorway
  data[:colorway]
end

#dye_lotObject

Gets dye_lot from existing ‘data`.



54
55
56
# File 'lib/ravelry/pack.rb', line 54

def dye_lot
  data[:dye_lot]
end

#grams_per_skeinObject

Gets grams_per_skein from existing ‘data`.



69
70
71
# File 'lib/ravelry/pack.rb', line 69

def grams_per_skein
  data[:grams_per_skein]
end

#idObject

Gets id from existing ‘data`.



64
65
66
# File 'lib/ravelry/pack.rb', line 64

def id
  data[:id]
end

#meters_per_skeinObject

Gets meters_per_skein from existing ‘data`.



114
115
116
# File 'lib/ravelry/pack.rb', line 114

def meters_per_skein
  data[:meters_per_skein]
end

#ounces_per_skeinObject

Gets ounces_per_skein from existing ‘data`.



49
50
51
# File 'lib/ravelry/pack.rb', line 49

def ounces_per_skein
  data[:ounces_per_skein]
end

#personal_nameObject

Gets personal_name from existing ‘data`.



104
105
106
# File 'lib/ravelry/pack.rb', line 104

def personal_name
  data[:personal_name]
end

#prefer_metric_lengthObject

Gets prefer_metric_length from existing ‘data`.



44
45
46
# File 'lib/ravelry/pack.rb', line 44

def prefer_metric_length
  data[:prefer_metric_length]
end

#prefer_metric_weightObject

Gets prefer_metric_weight from existing ‘data`.



39
40
41
# File 'lib/ravelry/pack.rb', line 39

def prefer_metric_weight
  data[:prefer_metric_weight]
end

#primary_pack_idObject

Gets primary_pack_id from existing ‘data`.



99
100
101
# File 'lib/ravelry/pack.rb', line 99

def primary_pack_id
  data[:primary_pack_id]
end

#project_idObject

Gets project_id from existing ‘data`.



29
30
31
# File 'lib/ravelry/pack.rb', line 29

def project_id
  data[:project_id]
end

#quantity_descriptionObject

Gets quantity_description from existing ‘data`.



14
15
16
# File 'lib/ravelry/pack.rb', line 14

def quantity_description
  data[:quantity_description]
end

#shop_idObject

Gets shop_id from existing ‘data`.



34
35
36
# File 'lib/ravelry/pack.rb', line 34

def shop_id
  data[:shop_id]
end

#shop_nameObject

Gets shop_name from existing ‘data`.



79
80
81
# File 'lib/ravelry/pack.rb', line 79

def shop_name
  data[:shop_name]
end

#skeinsObject

Gets skeins from existing ‘data`.



59
60
61
# File 'lib/ravelry/pack.rb', line 59

def skeins
  data[:skeins]
end

#stash_idObject

Gets stash_id from existing ‘data`.



89
90
91
# File 'lib/ravelry/pack.rb', line 89

def stash_id
  data[:stash_id]
end

#total_gramsObject

Gets total_grams from existing ‘data`.



24
25
26
# File 'lib/ravelry/pack.rb', line 24

def total_grams
  data[:total_grams]
end

#total_metersObject

Gets total_meters from existing ‘data`.



84
85
86
# File 'lib/ravelry/pack.rb', line 84

def total_meters
  data[:total_meters]
end

#total_ouncesObject

Gets total_ounces from existing ‘data`.



94
95
96
# File 'lib/ravelry/pack.rb', line 94

def total_ounces
  data[:total_ounces]
end

#total_yardsObject

Gets total_yards from existing ‘data`.



129
130
131
# File 'lib/ravelry/pack.rb', line 129

def total_yards
  data[:total_yards]
end

#yards_per_skeinObject

Gets yards_per_skein from existing ‘data`.



124
125
126
# File 'lib/ravelry/pack.rb', line 124

def yards_per_skein
  data[:yards_per_skein]
end

#yarn_idObject

Gets yarn_id from existing ‘data`.



19
20
21
# File 'lib/ravelry/pack.rb', line 19

def yarn_id
  data[:yarn_id]
end

#yarn_nameObject

Gets yarn_name from existing ‘data`.



119
120
121
# File 'lib/ravelry/pack.rb', line 119

def yarn_name
  data[:yarn_name]
end