Class: Aninipot::Client

Inherits:
Object
  • Object
show all
Includes:
Configuration, ClassSupportMixin
Defined in:
lib/aninipot/client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Configuration

included

Methods included from ClassSupportMixin

included

Instance Attribute Details

#apiObject (readonly)

Returns the value of attribute api.



11
12
13
# File 'lib/aninipot/client.rb', line 11

def api
  @api
end

#fromObject (readonly)

Returns the value of attribute from.



11
12
13
# File 'lib/aninipot/client.rb', line 11

def from
  @from
end

Instance Method Details

#send_sms(mobile, message) ⇒ Object



13
14
15
16
# File 'lib/aninipot/client.rb', line 13

def send_sms(mobile, message)
  request = setup_connection(valid_sms_data(mobile, message))
  response = connect(request)
end