Class: Customer::Registered::BasicPresenter
- Inherits:
-
Object
- Object
- Customer::Registered::BasicPresenter
- Defined in:
- app/presenters/customer/registered/basic_presenter.rb
Instance Method Summary collapse
-
#initialize(resource:) ⇒ BasicPresenter
constructor
A new instance of BasicPresenter.
- #to_h ⇒ Object
Constructor Details
#initialize(resource:) ⇒ BasicPresenter
Returns a new instance of BasicPresenter.
6 7 8 |
# File 'app/presenters/customer/registered/basic_presenter.rb', line 6 def initialize(resource:) @resource = resource end |
Instance Method Details
#to_h ⇒ Object
10 11 12 13 14 |
# File 'app/presenters/customer/registered/basic_presenter.rb', line 10 def to_h return [] if resource.empty? basic_payload end |