Class: MailUp::Public::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/mailup/public/base.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(api) ⇒ Base

:nodoc:



6
7
8
9
# File 'lib/mailup/public/base.rb', line 6

def initialize(api) # :nodoc:
    @api = api
    @api.path = "/API/v#{MailUp::API_VERSION}/Rest/PublicService.svc"
end

Instance Attribute Details

#apiObject

Returns the value of attribute api.



4
5
6
# File 'lib/mailup/public/base.rb', line 4

def api
  @api
end

Instance Method Details

#consoleObject

Resource nodes



12
13
14
# File 'lib/mailup/public/base.rb', line 12

def console
  Console.new @api
end