Class: Boutique::ProductBuilder

Inherits:
Object
  • Object
show all
Defined in:
lib/boutique.rb

Instance Method Summary collapse

Instance Method Details

#code(value = nil) ⇒ Object



116
117
118
119
# File 'lib/boutique.rb', line 116

def code(value=nil)
  @code = value if !value.nil?
  @code
end

#files(value = nil) ⇒ Object



126
127
128
129
# File 'lib/boutique.rb', line 126

def files(value=nil)
  @files = value if !value.nil?
  @files
end

#name(value = nil) ⇒ Object



121
122
123
124
# File 'lib/boutique.rb', line 121

def name(value=nil)
  @name = value if !value.nil?
  @name
end

#price(value = nil) ⇒ Object



131
132
133
134
# File 'lib/boutique.rb', line 131

def price(value=nil)
  @price = value if !value.nil?
  @price
end

#return_url(value = nil) ⇒ Object



136
137
138
139
# File 'lib/boutique.rb', line 136

def return_url(value=nil)
  @return_url = value if !value.nil?
  @return_url
end

#support_email(value = nil) ⇒ Object



141
142
143
144
# File 'lib/boutique.rb', line 141

def support_email(value=nil)
  @support_email = value if !value.nil?
  @support_email
end

#to_hashObject



146
147
148
149
150
151
152
153
# File 'lib/boutique.rb', line 146

def to_hash
  {:code => @code,
   :name => @name,
   :files => @files,
   :price => @price,
   :return_url => @return_url,
   :support_email => @support_email}
end