Class: Effective::Providers::StripeCharge

Inherits:
Object
  • Object
show all
Includes:
ActiveModel::Model
Defined in:
app/models/effective/providers/stripe_charge.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#effective_order_idObject

For our form



6
7
8
# File 'app/models/effective/providers/stripe_charge.rb', line 6

def effective_order_id
  @effective_order_id
end

#orderObject

For our form



6
7
8
# File 'app/models/effective/providers/stripe_charge.rb', line 6

def order
  @order
end

#stripe_tokenObject

For our form



6
7
8
# File 'app/models/effective/providers/stripe_charge.rb', line 6

def stripe_token
  @stripe_token
end

Instance Method Details

#order_itemsObject



19
20
21
# File 'app/models/effective/providers/stripe_charge.rb', line 19

def order_items
  order.order_items if order
end

#persisted?Boolean

Returns:

  • (Boolean)


11
12
13
# File 'app/models/effective/providers/stripe_charge.rb', line 11

def persisted?
  false
end