Class: Celery::Shop
Instance Attribute Summary collapse
-
#_id ⇒ Object
Returns the value of attribute _id.
-
#analytics ⇒ Object
Returns the value of attribute analytics.
-
#campaign ⇒ Object
Returns the value of attribute campaign.
-
#created ⇒ Object
Returns the value of attribute created.
-
#created_date ⇒ Object
Returns the value of attribute created_date.
-
#css ⇒ Object
Returns the value of attribute css.
-
#deposit ⇒ Object
Returns the value of attribute deposit.
-
#description ⇒ Object
Returns the value of attribute description.
-
#extras ⇒ Object
Returns the value of attribute extras.
-
#flags ⇒ Object
Returns the value of attribute flags.
-
#image ⇒ Object
Returns the value of attribute image.
-
#metadata ⇒ Object
Returns the value of attribute metadata.
-
#name ⇒ Object
Returns the value of attribute name.
-
#notes ⇒ Object
Returns the value of attribute notes.
-
#options ⇒ Object
Returns the value of attribute options.
-
#pitch ⇒ Object
Returns the value of attribute pitch.
-
#price ⇒ Object
Returns the value of attribute price.
-
#published ⇒ Object
Returns the value of attribute published.
-
#quantity_limit ⇒ Object
Returns the value of attribute quantity_limit.
-
#shipping ⇒ Object
Returns the value of attribute shipping.
-
#slug ⇒ Object
Returns the value of attribute slug.
-
#tagline ⇒ Object
Returns the value of attribute tagline.
-
#updated ⇒ Object
Returns the value of attribute updated.
-
#updated_date ⇒ Object
Returns the value of attribute updated_date.
-
#user_id ⇒ Object
Returns the value of attribute user_id.
-
#video ⇒ Object
Returns the value of attribute video.
Class Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from Celery::Base
Instance Attribute Details
#_id ⇒ Object
Returns the value of attribute _id.
4 5 6 |
# File 'lib/celery/shop.rb', line 4 def _id @_id end |
#analytics ⇒ Object
Returns the value of attribute analytics.
4 5 6 |
# File 'lib/celery/shop.rb', line 4 def analytics @analytics end |
#campaign ⇒ Object
Returns the value of attribute campaign.
4 5 6 |
# File 'lib/celery/shop.rb', line 4 def campaign @campaign end |
#created ⇒ Object
Returns the value of attribute created.
4 5 6 |
# File 'lib/celery/shop.rb', line 4 def created @created end |
#created_date ⇒ Object
Returns the value of attribute created_date.
4 5 6 |
# File 'lib/celery/shop.rb', line 4 def created_date @created_date end |
#css ⇒ Object
Returns the value of attribute css.
4 5 6 |
# File 'lib/celery/shop.rb', line 4 def css @css end |
#deposit ⇒ Object
Returns the value of attribute deposit.
4 5 6 |
# File 'lib/celery/shop.rb', line 4 def deposit @deposit end |
#description ⇒ Object
Returns the value of attribute description.
4 5 6 |
# File 'lib/celery/shop.rb', line 4 def description @description end |
#extras ⇒ Object
Returns the value of attribute extras.
4 5 6 |
# File 'lib/celery/shop.rb', line 4 def extras @extras end |
#flags ⇒ Object
Returns the value of attribute flags.
4 5 6 |
# File 'lib/celery/shop.rb', line 4 def flags @flags end |
#image ⇒ Object
Returns the value of attribute image.
4 5 6 |
# File 'lib/celery/shop.rb', line 4 def image @image end |
#metadata ⇒ Object
Returns the value of attribute metadata.
4 5 6 |
# File 'lib/celery/shop.rb', line 4 def end |
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/celery/shop.rb', line 4 def name @name end |
#notes ⇒ Object
Returns the value of attribute notes.
4 5 6 |
# File 'lib/celery/shop.rb', line 4 def notes @notes end |
#options ⇒ Object
Returns the value of attribute options.
4 5 6 |
# File 'lib/celery/shop.rb', line 4 def end |
#pitch ⇒ Object
Returns the value of attribute pitch.
4 5 6 |
# File 'lib/celery/shop.rb', line 4 def pitch @pitch end |
#price ⇒ Object
Returns the value of attribute price.
4 5 6 |
# File 'lib/celery/shop.rb', line 4 def price @price end |
#published ⇒ Object
Returns the value of attribute published.
4 5 6 |
# File 'lib/celery/shop.rb', line 4 def published @published end |
#quantity_limit ⇒ Object
Returns the value of attribute quantity_limit.
4 5 6 |
# File 'lib/celery/shop.rb', line 4 def quantity_limit @quantity_limit end |
#shipping ⇒ Object
Returns the value of attribute shipping.
4 5 6 |
# File 'lib/celery/shop.rb', line 4 def shipping @shipping end |
#slug ⇒ Object
Returns the value of attribute slug.
4 5 6 |
# File 'lib/celery/shop.rb', line 4 def slug @slug end |
#tagline ⇒ Object
Returns the value of attribute tagline.
4 5 6 |
# File 'lib/celery/shop.rb', line 4 def tagline @tagline end |
#updated ⇒ Object
Returns the value of attribute updated.
4 5 6 |
# File 'lib/celery/shop.rb', line 4 def updated @updated end |
#updated_date ⇒ Object
Returns the value of attribute updated_date.
4 5 6 |
# File 'lib/celery/shop.rb', line 4 def updated_date @updated_date end |
#user_id ⇒ Object
Returns the value of attribute user_id.
4 5 6 |
# File 'lib/celery/shop.rb', line 4 def user_id @user_id end |
#video ⇒ Object
Returns the value of attribute video.
4 5 6 |
# File 'lib/celery/shop.rb', line 4 def video @video end |
Class Method Details
.endpoint_path ⇒ Object
21 22 23 |
# File 'lib/celery/shop.rb', line 21 def endpoint_path Celery.endpoint + "shop" end |
.get(slug) ⇒ Object
11 12 13 14 |
# File 'lib/celery/shop.rb', line 11 def get(slug) response = HTTParty.get("#{endpoint_path}/#{slug}") Celery::Product.new(response["product"]) end |
.options(args = {}) ⇒ Object
25 26 27 |
# File 'lib/celery/shop.rb', line 25 def (args={}) Celery.(args) end |
.slugify(slug) ⇒ Object
16 17 18 19 |
# File 'lib/celery/shop.rb', line 16 def slugify(slug) response = HTTParty.get("#{Celery.endpoint}slugify?slug=#{slug}") return response["slugify"] end |