Class: Diesel::APIBase

Inherits:
Object
  • Object
show all
Defined in:
lib/diesel/api_base.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ APIBase

Returns a new instance of APIBase.



11
12
13
# File 'lib/diesel/api_base.rb', line 11

def initialize(options = {})
  @options = options
end

Instance Attribute Details

#loggerObject

Returns the value of attribute logger.



9
10
11
# File 'lib/diesel/api_base.rb', line 9

def logger
  @logger
end

#optionsObject

Returns the value of attribute options.



9
10
11
# File 'lib/diesel/api_base.rb', line 9

def options
  @options
end

Class Method Details

.api_groupsObject



21
# File 'lib/diesel/api_base.rb', line 21

def api_groups; @api_groups ||= []; end

.api_groups=(api_groups) ⇒ Object



22
23
24
# File 'lib/diesel/api_base.rb', line 22

def api_groups=(api_groups)
  @api_groups = api_groups
end