Class: ShopifyAPI::Fulfillment

Inherits:
Base show all
Defined in:
lib/shopify_api/resources/fulfillment.rb

Instance Method Summary collapse

Methods inherited from Base

activate_session, #as_json, clear_session, #encode, #headers, init_prefix, init_prefix_explicit, #persisted?

Methods included from Countable

#count

Methods inherited from ActiveResource::Base

delete, headers

Instance Method Details

#cancelObject



9
# File 'lib/shopify_api/resources/fulfillment.rb', line 9

def cancel; load_attributes_from_response(post(:cancel, {}, only_id)); end

#completeObject



10
# File 'lib/shopify_api/resources/fulfillment.rb', line 10

def complete; load_attributes_from_response(post(:complete, {}, only_id)); end

#openObject



11
# File 'lib/shopify_api/resources/fulfillment.rb', line 11

def open; load_attributes_from_response(post(:open, {}, only_id)); end

#order_idObject



5
6
7
# File 'lib/shopify_api/resources/fulfillment.rb', line 5

def order_id
  @prefix_options[:order_id]
end