Class: SmsMasking::Base

Inherits:
Object
  • Object
show all
Includes:
HTTParty, Account, Auth, Group, PhoneBook, Response, SendSms
Defined in:
lib/sms_masking/base.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Account

#balance, #change_password

Methods included from Response

#description, #print_response

Methods included from Group

#add_group, #delete_group, #edit_group, #find_group, #list_group

Methods included from PhoneBook

#add_phone_book, #contact_detail, #delete_phone_book, #edit_phone_book, #find_contact, #find_number, #list_phone_book, #list_phone_book_by_group

Methods included from SendSms

#send_sms, #send_sms_group

Methods included from Auth

#auth

Constructor Details

#initialize(params = {}) ⇒ Base

Returns a new instance of Base.



24
25
26
27
28
29
# File 'lib/sms_masking/base.rb', line 24

def initialize(params = {})
  @base_path = "/Web2SMS/api"
  params.each do |key, value| 
    instance_variable_set("@#{key}", value)
  end
end

Instance Attribute Details

#base_pathObject

Returns the value of attribute base_path.



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

def base_path
  @base_path
end

#passwordObject

Returns the value of attribute password.



11
12
13
# File 'lib/sms_masking/base.rb', line 11

def password
  @password
end

#usernameObject

Returns the value of attribute username.



10
11
12
# File 'lib/sms_masking/base.rb', line 10

def username
  @username
end