Class: Zabbirc::Zabbix::User

Inherits:
Resource::Base show all
Defined in:
lib/zabbirc/zabbix/user.rb

Class Method Summary collapse

Methods inherited from Resource::Base

#[], api, #api, #id, id_attr_name, #initialize, #method_missing, model_name, set_id_attr_name, set_model_name

Methods included from Resource::Associations

#has_many, #has_one

Methods included from Resource::Finders

#find, #get

Constructor Details

This class inherits a constructor from Zabbirc::Zabbix::Resource::Base

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Zabbirc::Zabbix::Resource::Base

Class Method Details

.find_by_alias(_alias, options = {}) ⇒ Object



4
5
6
7
# File 'lib/zabbirc/zabbix/user.rb', line 4

def self.find_by_alias _alias, options={}
  options = options.merge filter: { alias: _alias  }
  get(options).first
end