Class: Radar::Resource

Inherits:
Object
  • Object
show all
Defined in:
lib/radar_client_rb/resource.rb

Direct Known Subclasses

MessageList, Presence, Status

Instance Method Summary collapse

Constructor Details

#initialize(client, name) ⇒ Resource

Returns a new instance of Resource.


5
6
7
8
# File 'lib/radar_client_rb/resource.rb', line 5

def initialize(client, name)
  @client = client
  @name = name
end

Instance Method Details

#loggerObject


10
11
12
# File 'lib/radar_client_rb/resource.rb', line 10

def logger
  @logger ||= defined?(Rails) ? Rails.logger : Logger.new($stdout)
end