Class: Moloni::Product

Inherits:
BaseModel show all
Defined in:
lib/moloni/models/product.rb

Constant Summary

Constants inherited from BaseModel

BaseModel::COMMON_ACRONYMS, BaseModel::ERROR_MESSAGES

Class Method Summary collapse

Methods inherited from BaseModel

all, composed_params, count, create, delete, find, format_url, #format_url, method_missing, post, respond_to_missing?

Class Method Details

.search_by_name(args) ⇒ Object

rubocop:enable Naming/MethodName



16
17
18
# File 'lib/moloni/models/product.rb', line 16

def self.search_by_name(args)
  post('getByName/', args)
end

.searchByName(args) ⇒ Object

Backward-compatible alias (v0.4 API name) rubocop:disable Naming/MethodName



11
12
13
# File 'lib/moloni/models/product.rb', line 11

def self.searchByName(args)
  post('getByName/', args)
end