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 Account
Methods included from 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
Methods included from 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_path ⇒ Object
Returns the value of attribute base_path.
12 13 14 |
# File 'lib/sms_masking/base.rb', line 12 def base_path @base_path end |
#password ⇒ Object
Returns the value of attribute password.
11 12 13 |
# File 'lib/sms_masking/base.rb', line 11 def password @password end |
#username ⇒ Object
Returns the value of attribute username.
10 11 12 |
# File 'lib/sms_masking/base.rb', line 10 def username @username end |