Class: AcceptOn::Charge
- Inherits:
-
Base
- Object
- Base
- AcceptOn::Charge
show all
- Defined in:
- lib/accepton/charge.rb
Instance Attribute Summary collapse
Instance Method Summary
collapse
Methods inherited from Base
#initialize
Constructor Details
This class inherits a constructor from AcceptOn::Base
Instance Attribute Details
#amount ⇒ Object
13
14
15
|
# File 'lib/accepton/charge.rb', line 13
def amount
@amount
end
|
#application_fee ⇒ Object
13
14
15
|
# File 'lib/accepton/charge.rb', line 13
def application_fee
@application_fee
end
|
#currency ⇒ Object
13
14
15
|
# File 'lib/accepton/charge.rb', line 13
def currency
@currency
end
|
#description ⇒ Object
13
14
15
|
# File 'lib/accepton/charge.rb', line 13
def description
@description
end
|
#id ⇒ Object
13
14
15
|
# File 'lib/accepton/charge.rb', line 13
def id
@id
end
|
13
14
15
|
# File 'lib/accepton/charge.rb', line 13
def metadata
@metadata
end
|
#refunded ⇒ Object
13
14
15
|
# File 'lib/accepton/charge.rb', line 13
def refunded
@refunded
end
|
#remote_id ⇒ Object
13
14
15
|
# File 'lib/accepton/charge.rb', line 13
def remote_id
@remote_id
end
|
#status ⇒ Object
13
14
15
|
# File 'lib/accepton/charge.rb', line 13
def status
@status
end
|
Instance Method Details
#created_at ⇒ Time
The time the charge was created
21
22
23
|
# File 'lib/accepton/charge.rb', line 21
def created_at
Time.parse(@created_at).utc unless @created_at.nil?
end
|