Class: AgentCooper::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/agent_cooper/config.rb

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.app_idObject

Returns the value of attribute app_id.



4
5
6
# File 'lib/agent_cooper/config.rb', line 4

def app_id
  @app_id
end

Class Method Details

.configure {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:



7
8
9
10
11
12
13
# File 'lib/agent_cooper/config.rb', line 7

def configure(&block)
  unless block_given?
    raise ArgumentError, "No block given"
  end

  yield self if block_given?
end