Module: Jung::Drivers::Infobip

Defined in:
lib/jung/drivers/infobip.rb,
lib/jung/drivers/infobip/sms_counter.rb

Defined Under Namespace

Modules: Campaign, SmsCounter Classes: Api

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#apiObject

Returns the value of attribute api.



6
7
8
# File 'lib/jung/drivers/infobip.rb', line 6

def api
  @api
end

#idObject (readonly)

Returns the value of attribute id.



6
7
8
# File 'lib/jung/drivers/infobip.rb', line 6

def id
  @id
end

#list_idObject

Returns the value of attribute list_id.



6
7
8
# File 'lib/jung/drivers/infobip.rb', line 6

def list_id
  @list_id
end

Class Method Details

.extended(base) ⇒ Object



9
10
11
12
13
# File 'lib/jung/drivers/infobip.rb', line 9

def self.extended(base)
  return if base.class != Jung::Campaign
  base.extend Jung::Drivers::Infobip::Campaign
  base.api = Api.new base.config
end

Instance Method Details

#errorsObject



15
16
17
# File 'lib/jung/drivers/infobip.rb', line 15

def errors
  api.errors
end