Class: SmsMasking::Base

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Response

#description, #print_response

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.



20
21
22
23
24
25
# File 'lib/sms_masking/base.rb', line 20

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.



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

def base_path
  @base_path
end

#passwordObject

Returns the value of attribute password.



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

def password
  @password
end

#usernameObject

Returns the value of attribute username.



8
9
10
# File 'lib/sms_masking/base.rb', line 8

def username
  @username
end