Class: Bunq::NotificationFilterUrl

Inherits:
Object
  • Object
show all
Defined in:
lib/bunq/notification_filter_url.rb

Overview

Instance Method Summary collapse

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

#showObject



14
15
16
# File 'lib/bunq/notification_filter_url.rb', line 14

def show
  @resource.with_session { @resource.get }['Response']
end