Class: Kaui::Tag
- Inherits:
-
KillBillClient::Model::Tag
- Object
- KillBillClient::Model::Tag
- Kaui::Tag
- Defined in:
- app/models/kaui/tag.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.list_or_search(search_key = nil, offset = 0, limit = 10, options = {}) ⇒ Object
3 4 5 6 7 8 9 |
# File 'app/models/kaui/tag.rb', line 3 def self.list_or_search(search_key = nil, offset = 0, limit = 10, = {}) if search_key.present? find_in_batches_by_search_key(search_key, offset, limit, ) else find_in_batches(offset, limit, ) end end |
Instance Method Details
#<=>(tag) ⇒ Object
15 16 17 |
# File 'app/models/kaui/tag.rb', line 15 def <=>(tag) tag_definition_name.downcase <=> tag.tag_definition_name.downcase end |
#is_system_tag? ⇒ Boolean
11 12 13 |
# File 'app/models/kaui/tag.rb', line 11 def is_system_tag? Kaui::TagDefinition(:id => tag_definition_id).is_system_tag? end |