Class: Pin::Models::Charge
- Inherits:
- 
      Object
      
        - Object
- Pin::Models::Charge
 
- Defined in:
- lib/pin/models/charge.rb
Instance Attribute Summary collapse
- 
  
    
      #amount  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Returns the value of attribute amount. 
- 
  
    
      #card  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Returns the value of attribute card. 
- 
  
    
      #created_at  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Returns the value of attribute created_at. 
- 
  
    
      #currency  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Returns the value of attribute currency. 
- 
  
    
      #description  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Returns the value of attribute description. 
- 
  
    
      #email  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Returns the value of attribute email. 
- 
  
    
      #error_message  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Returns the value of attribute error_message. 
- 
  
    
      #ip_address  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Returns the value of attribute ip_address. 
- 
  
    
      #merchant_entitlement  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Returns the value of attribute merchant_entitlement. 
- 
  
    
      #status_message  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Returns the value of attribute status_message. 
- 
  
    
      #success  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Returns the value of attribute success. 
- 
  
    
      #token  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Returns the value of attribute token. 
- 
  
    
      #total_fees  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Returns the value of attribute total_fees. 
Instance Method Summary collapse
- 
  
    
      #initialize(params)  ⇒ Charge 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of Charge. 
Constructor Details
#initialize(params) ⇒ Charge
Returns a new instance of Charge.
| 4 5 6 | # File 'lib/pin/models/charge.rb', line 4 def initialize(params) params.each { |k, v| instance_variable_set("@#{k}", v) unless v.nil? } end | 
Instance Attribute Details
#amount ⇒ Object
Returns the value of attribute amount.
| 2 3 4 | # File 'lib/pin/models/charge.rb', line 2 def amount @amount end | 
#card ⇒ Object
Returns the value of attribute card.
| 2 3 4 | # File 'lib/pin/models/charge.rb', line 2 def card @card end | 
#created_at ⇒ Object
Returns the value of attribute created_at.
| 2 3 4 | # File 'lib/pin/models/charge.rb', line 2 def created_at @created_at end | 
#currency ⇒ Object
Returns the value of attribute currency.
| 2 3 4 | # File 'lib/pin/models/charge.rb', line 2 def currency @currency end | 
#description ⇒ Object
Returns the value of attribute description.
| 2 3 4 | # File 'lib/pin/models/charge.rb', line 2 def description @description end | 
#email ⇒ Object
Returns the value of attribute email.
| 2 3 4 | # File 'lib/pin/models/charge.rb', line 2 def email @email end | 
#error_message ⇒ Object
Returns the value of attribute error_message.
| 2 3 4 | # File 'lib/pin/models/charge.rb', line 2 def @error_message end | 
#ip_address ⇒ Object
Returns the value of attribute ip_address.
| 2 3 4 | # File 'lib/pin/models/charge.rb', line 2 def ip_address @ip_address end | 
#merchant_entitlement ⇒ Object
Returns the value of attribute merchant_entitlement.
| 2 3 4 | # File 'lib/pin/models/charge.rb', line 2 def merchant_entitlement @merchant_entitlement end | 
#status_message ⇒ Object
Returns the value of attribute status_message.
| 2 3 4 | # File 'lib/pin/models/charge.rb', line 2 def @status_message end | 
#success ⇒ Object
Returns the value of attribute success.
| 2 3 4 | # File 'lib/pin/models/charge.rb', line 2 def success @success end | 
#token ⇒ Object
Returns the value of attribute token.
| 2 3 4 | # File 'lib/pin/models/charge.rb', line 2 def token @token end | 
#total_fees ⇒ Object
Returns the value of attribute total_fees.
| 2 3 4 | # File 'lib/pin/models/charge.rb', line 2 def total_fees @total_fees end |