Class: Spree::Adyen::Presenters::Communications::AdyenNotification
- Inherits:
-
Base
- Object
- SimpleDelegator
- Base
- Spree::Adyen::Presenters::Communications::AdyenNotification
show all
- Defined in:
- app/models/spree/adyen/presenters/communications/adyen_notification.rb
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Base
#created_at_s, #css_class, #present_fields, #to_model, #to_partial_path
Class Method Details
.applicable?(obj) ⇒ Boolean
19
20
21
|
# File 'app/models/spree/adyen/presenters/communications/adyen_notification.rb', line 19
def self.applicable? obj
obj.is_a? ::AdyenNotification
end
|
Instance Method Details
#fields ⇒ Object
8
9
10
11
12
13
|
# File 'app/models/spree/adyen/presenters/communications/adyen_notification.rb', line 8
def fields
{ event_code: event_code,
reason: reason,
amount: money.format
}
end
|
#inbound? ⇒ Boolean
15
16
17
|
# File 'app/models/spree/adyen/presenters/communications/adyen_notification.rb', line 15
def inbound?
true
end
|