Class: Bunq::NotificationFilterUrl
- Inherits:
-
Object
- Object
- Bunq::NotificationFilterUrl
- Defined in:
- lib/bunq/notification_filter_url.rb
Overview
Instance Method Summary collapse
- #create(notification_filters) ⇒ Object
-
#initialize(parent_resource) ⇒ NotificationFilterUrl
constructor
A new instance of NotificationFilterUrl.
- #show ⇒ Object
Constructor Details
#initialize(parent_resource) ⇒ NotificationFilterUrl
Returns a new instance of NotificationFilterUrl.
6 7 8 |
# File 'lib/bunq/notification_filter_url.rb', line 6 def initialize(parent_resource) @resource = parent_resource.append('/notification-filter-url') end |
Instance Method Details
#create(notification_filters) ⇒ Object
10 11 12 |
# File 'lib/bunq/notification_filter_url.rb', line 10 def create(notification_filters) @resource.with_session { @resource.post({notification_filters: notification_filters}) }['Response'] end |
#show ⇒ Object
14 15 16 |
# File 'lib/bunq/notification_filter_url.rb', line 14 def show @resource.with_session { @resource.get }['Response'] end |