module PrintfulAPI::APIOperations::Save

Public Instance Methods

save( opts = {} ) click to toggle source
# File lib/printful_api/api_operations/save.rb, line 7
def save( opts = {} )

        if self.id.present?

                self.class.update( self.to_h, opts )

        else

                self.class.create( self.to_h, opts )

        end

end