Class: Moloni::Company
- Defined in:
- lib/moloni/models/company.rb
Constant Summary
Constants inherited from BaseModel
BaseModel::COMMON_ACRONYMS, BaseModel::ERROR_MESSAGES
Class Method Summary collapse
- .check_slug(slug) ⇒ Object
-
.find(id) ⇒ Object
Backward-compatible alias (v0.4 accepted a bare id).
Methods inherited from BaseModel
all, composed_params, count, create, delete, format_url, #format_url, method_missing, post, respond_to_missing?
Class Method Details
.check_slug(slug) ⇒ Object
14 15 16 |
# File 'lib/moloni/models/company.rb', line 14 def self.check_slug(slug) post('freeSlug/', { slug: })[:valid] == 1 end |
.find(id) ⇒ Object
Backward-compatible alias (v0.4 accepted a bare id)
10 11 12 |
# File 'lib/moloni/models/company.rb', line 10 def self.find(id) post('getOne/', { company_id: id }) end |