Class: SparkApi::Models::PortalListingCart

Inherits:
ListingCart show all
Defined in:
lib/spark_api/models/portal_listing_cart.rb

Constant Summary

Constants included from Paginate

Paginate::DEFAULT_PAGE_SIZE

Instance Attribute Summary

Attributes inherited from Base

#attributes, #errors, #parent

Class Method Summary collapse

Methods inherited from ListingCart

#ListingIds=, #Name=, #add_listings, #deletable?, #filter, for, #initialize, #listings, my, path, portal, #remove_listing

Methods included from Finders

#find, #find_one, #first, #last

Methods included from Concerns::Savable

#create!, #params_for_save, #post_data, #save, #save!, #update!, #update_attributes

Methods included from Concerns::Destroyable

#destroy, #destroy!, #destroyed?, included

Methods inherited from Base

connection, #connection, count, element_name, element_name=, first, get, #id, #initialize, #load, #method_missing, #parse_id, path, #path, #persisted?, prefix, prefix=, #resource_pluralized, #resource_uri, #respond_to?, #to_param, #to_partial_path

Methods included from Paginate

#collect, #paginate, #per_page

Methods included from Dirty

#changed, #changed?, #changed_attributes, #changes, #dirty_attributes, #previous_changes

Constructor Details

This class inherits a constructor from SparkApi::Models::ListingCart

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class SparkApi::Models::Base

Class Method Details

.find(contact_id, *arguments) ⇒ Object



6
7
8
9
# File 'lib/spark_api/models/portal_listing_cart.rb', line 6

def self.find(contact_id, *arguments)
  @contact_id = contact_id
  super(*arguments)
end