Method: Umbreo::Models::Service#initialize
- Defined in:
- lib/umbreo/models/service.rb
#initialize(credentials = {}, name_or_id = nil) ⇒ Service
Returns a new instance of Service.
5 6 7 8 9 10 11 12 13 14 |
# File 'lib/umbreo/models/service.rb', line 5 def initialize(credentials = {}, name_or_id = nil) if credentials.present? @email = credentials[:email] @api_key = credentials[:api_key] @endpoint = credentials[:end_point] || SERVER_END_POINT end @name_or_id = name_or_id @errors = [] end |