Class: RubyRedtail::TagGroup::Contacts
- Inherits:
-
Object
- Object
- RubyRedtail::TagGroup::Contacts
- Defined in:
- lib/ruby-redtail/tag_group/contacts.rb
Instance Method Summary collapse
- #fetch ⇒ Object
-
#initialize(tag_group_id, api_hash) ⇒ Contacts
constructor
A new instance of Contacts.
Constructor Details
#initialize(tag_group_id, api_hash) ⇒ Contacts
Returns a new instance of Contacts.
4 5 6 7 |
# File 'lib/ruby-redtail/tag_group/contacts.rb', line 4 def initialize(tag_group_id,api_hash) @api_hash = api_hash @tag_group_id = tag_group_id end |
Instance Method Details
#fetch ⇒ Object
9 10 11 |
# File 'lib/ruby-redtail/tag_group/contacts.rb', line 9 def fetch build_contacts_array RubyRedtail::Query.run("taggroups/#{@tag_group_id}/contacts", @api_hash, "GET")["TagMember_Result"]["TagMembers"] end |