Class: Newslettre::APIModule

Inherits:
Object
  • Object
show all
Defined in:
lib/newslettre/api_module.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(api) ⇒ APIModule

Returns a new instance of APIModule.



4
5
6
# File 'lib/newslettre/api_module.rb', line 4

def initialize api
  @api = api
end

Instance Attribute Details

#apiObject (readonly)

Returns the value of attribute api.



2
3
4
# File 'lib/newslettre/api_module.rb', line 2

def api
  @api
end