Class: PrintfulAPI::Store

Inherits:
APIResource show all
Defined in:
lib/printful_api/store.rb

Instance Attribute Summary

Attributes inherited from APIResource

#raw_data

Class Method Summary collapse

Methods inherited from APIResource

api_attributes, belongs_to, camelize, has_many, #load_data, singularize, #to_h

Class Method Details

.get(opts = {}) ⇒ Object



12
13
14
15
16
17
18
19
20
21
# File 'lib/printful_api/store.rb', line 12

def self.get( opts={} )

	data = PrintfulAPI.request( :GET, self.resource_path )

	model = self.new
	model.load_data( data )

	model

end

.resource_pathObject



23
24
25
# File 'lib/printful_api/store.rb', line 23

def self.resource_path
	'/store'
end