Class: DataComApi::Responses::Contacts
- Defined in:
- lib/data-com-api/responses/contacts.rb
Instance Method Summary collapse
- #contacts ⇒ Object
-
#initialize(api_client, contact_ids, username, password, purchase_flag) ⇒ Contacts
constructor
A new instance of Contacts.
- #point_balance ⇒ Object
- #purchased_contacts ⇒ Object
- #size ⇒ Object
- #used_points ⇒ Object
Constructor Details
#initialize(api_client, contact_ids, username, password, purchase_flag) ⇒ Contacts
Returns a new instance of Contacts.
8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/data-com-api/responses/contacts.rb', line 8 def initialize(api_client, contact_ids, username, password, purchase_flag) @contact_ids = contact_ids @username = username @password = password @purchase_flag = purchase_flag @used_points = nil @size = nil @purchased_contacts = nil @point_balance = nil @contacts = [] super(api_client) end |
Instance Method Details
#contacts ⇒ Object
50 51 52 53 54 55 |
# File 'lib/data-com-api/responses/contacts.rb', line 50 def contacts return @contacts if requested? perform_request_if_not_requested! @contacts end |
#point_balance ⇒ Object
43 44 45 46 47 48 |
# File 'lib/data-com-api/responses/contacts.rb', line 43 def point_balance return @point_balance if requested? perform_request_if_not_requested! @point_balance end |
#purchased_contacts ⇒ Object
36 37 38 39 40 41 |
# File 'lib/data-com-api/responses/contacts.rb', line 36 def purchased_contacts return @purchased_contacts if requested? perform_request_if_not_requested! @purchased_contacts end |
#size ⇒ Object
22 23 24 25 26 27 |
# File 'lib/data-com-api/responses/contacts.rb', line 22 def size return @size if requested? perform_request_if_not_requested! @size end |
#used_points ⇒ Object
29 30 31 32 33 34 |
# File 'lib/data-com-api/responses/contacts.rb', line 29 def used_points return @used_points if requested? perform_request_if_not_requested! @used_points end |