Module: CommandTower::Workflows::Me::Pushover::WorkflowSupport
- Defined in:
- app/workflows/command_tower/workflows/me/pushover/workflow_support.rb
Class Method Summary collapse
- .capability_failure ⇒ Object
- .expire_header_effects(auth_context) ⇒ Object
- .serialize_view(safe_view) ⇒ Object
Class Method Details
.capability_failure ⇒ Object
10 11 12 13 14 15 16 |
# File 'app/workflows/command_tower/workflows/me/pushover/workflow_support.rb', line 10 def capability_failure error = CommandTower::Errors::Account::PushoverCapabilityUnavailableError.new { errors: [error], http_status: CommandTower::Workflows::Me::ErrorMapping.http_status_for(error) } end |
.expire_header_effects(auth_context) ⇒ Object
18 19 20 21 22 |
# File 'app/workflows/command_tower/workflows/me/pushover/workflow_support.rb', line 18 def expire_header_effects(auth_context) return if auth_context.nil? { set_expire_header: auth_context.token_expires_at } end |
.serialize_view(safe_view) ⇒ Object
24 25 26 |
# File 'app/workflows/command_tower/workflows/me/pushover/workflow_support.rb', line 24 def serialize_view(safe_view) CommandTower::Serializers::Me::PushoverSerializer.serialize(safe_view) end |