Class: Gamifier::DSL::ApiKey

Inherits:
Object
  • Object
show all
Defined in:
lib/gamifier/dsl/api_key.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ ApiKey

Returns a new instance of ApiKey.



6
7
8
# File 'lib/gamifier/dsl/api_key.rb', line 6

def initialize(*args)
  @source = ::Gamifier::ApiKey.new(*args)
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(*args, &block) ⇒ Object



14
15
16
# File 'lib/gamifier/dsl/api_key.rb', line 14

def method_missing(*args, &block)
  source.send(*args, &block)
end

Instance Attribute Details

#sourceObject (readonly)

Returns the value of attribute source.



4
5
6
# File 'lib/gamifier/dsl/api_key.rb', line 4

def source
  @source
end

Instance Method Details

#engineObject



10
11
12
# File 'lib/gamifier/dsl/api_key.rb', line 10

def engine
  source.engine
end