Class: EmailDirect::Filter
- Inherits:
-
Object
- Object
- EmailDirect::Filter
- Defined in:
- lib/emaildirect/filter.rb
Overview
Represents a filter and associated functionality
Instance Attribute Summary collapse
-
#filter_id ⇒ Object
readonly
Returns the value of attribute filter_id.
Class Method Summary collapse
Instance Method Summary collapse
- #details ⇒ Object
-
#initialize(filter_id) ⇒ Filter
constructor
A new instance of Filter.
- #members(options = {}) ⇒ Object
Constructor Details
#initialize(filter_id) ⇒ Filter
Returns a new instance of Filter.
16 17 18 |
# File 'lib/emaildirect/filter.rb', line 16 def initialize(filter_id) @filter_id = filter_id end |
Instance Attribute Details
#filter_id ⇒ Object (readonly)
Returns the value of attribute filter_id.
14 15 16 |
# File 'lib/emaildirect/filter.rb', line 14 def filter_id @filter_id end |
Class Method Details
.all ⇒ Object
8 9 10 11 |
# File 'lib/emaildirect/filter.rb', line 8 def all response = EmailDirect.get '/Filters' Hashie::Mash.new(response) end |
Instance Method Details
#details ⇒ Object
20 21 22 23 |
# File 'lib/emaildirect/filter.rb', line 20 def details response = get Hashie::Mash.new(response) end |
#members(options = {}) ⇒ Object
25 26 27 28 |
# File 'lib/emaildirect/filter.rb', line 25 def members( = {}) response = get 'Members', Hashie::Mash.new(response) end |