Class: Spree::Adyen::Presenters::Communications::HppSource
- Inherits:
-
Base
- Object
- SimpleDelegator
- Base
- Spree::Adyen::Presenters::Communications::HppSource
show all
- Defined in:
- app/models/spree/adyen/presenters/communications/hpp_source.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
24
25
26
|
# File 'app/models/spree/adyen/presenters/communications/hpp_source.rb', line 24
def self.applicable? obj
obj.is_a? Spree::Adyen::HppSource
end
|
Instance Method Details
#fields ⇒ Object
6
7
8
9
10
|
# File 'app/models/spree/adyen/presenters/communications/hpp_source.rb', line 6
def fields
{ result: auth_result,
payment_method: payment_method
}
end
|
#inbound? ⇒ Boolean
20
21
22
|
# File 'app/models/spree/adyen/presenters/communications/hpp_source.rb', line 20
def inbound?
true
end
|
#processed? ⇒ Boolean
16
17
18
|
# File 'app/models/spree/adyen/presenters/communications/hpp_source.rb', line 16
def processed?
true
end
|
#success? ⇒ Boolean
12
13
14
|
# File 'app/models/spree/adyen/presenters/communications/hpp_source.rb', line 12
def success?
true
end
|