Class: ContextIO::EmailAddressCollection
- Inherits:
-
Object
- Object
- ContextIO::EmailAddressCollection
- Includes:
- API::ResourceCollection
- Defined in:
- lib/contextio/email_address_collection.rb
Instance Attribute Summary
Attributes included from API::ResourceCollection
#resource_url, #where_constraints
Instance Method Summary collapse
Methods included from API::ResourceCollection
#[], #each, #empty?, #size, #where
Instance Method Details
#create(address) ⇒ Object
13 14 15 16 17 18 19 |
# File 'lib/contextio/email_address_collection.rb', line 13 def create(address) result_hash = api.request(:post, resource_url, email_address: address) result_hash.delete('success') resource_class.new(api, result_hash) end |