Class: SmsMasking::Base
- Inherits:
-
Object
- Object
- SmsMasking::Base
- Defined in:
- lib/sms_masking/base.rb
Instance Attribute Summary collapse
-
#base_path ⇒ Object
Returns the value of attribute base_path.
-
#password ⇒ Object
Returns the value of attribute password.
-
#username ⇒ Object
Returns the value of attribute username.
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ Base
constructor
A new instance of Base.
Methods included from 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
Methods included from 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_path ⇒ Object
Returns the value of attribute base_path.
10 11 12 |
# File 'lib/sms_masking/base.rb', line 10 def base_path @base_path end |
#password ⇒ Object
Returns the value of attribute password.
9 10 11 |
# File 'lib/sms_masking/base.rb', line 9 def password @password end |
#username ⇒ Object
Returns the value of attribute username.
8 9 10 |
# File 'lib/sms_masking/base.rb', line 8 def username @username end |