Class: FatZebra::Refund

Inherits:
APIResource show all
Includes:
APIOperation::Find, APIOperation::Save, APIOperation::Search, APIOperation::Void
Defined in:
lib/fat_zebra/refund.rb

Overview

FatZebra Refund

Manage refund for the API

  • search

  • save

  • find

  • void

Constant Summary

Constants included from APIOperation::Search

APIOperation::Search::DEFAULT_PARAMS

Instance Attribute Summary

Attributes inherited from FatZebraObject

#accepted

Attributes included from ObjectHelper

#data, #errors, #raw

Instance Method Summary collapse

Methods included from APIOperation::Void

included, #void

Methods included from APIOperation::Save

included, #save

Methods included from APIOperation::Search

included

Methods included from APIOperation::Find

included

Methods inherited from APIResource

base_path, request

Methods included from APIHelper

included, #request, #resource_name, #resource_path

Methods inherited from FatZebraObject

initialize_from, #load_response_api, #update_from

Methods included from Validation

#errors, #valid!, #valid?, #validates

Methods included from ObjectHelper

#[], #[]=, #add_accessor, #add_accessors, #add_data, #initialize, #inspect, #keys, #method_missing, #remove_accessor, #to_hash, #to_json, #update_attributes

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class FatZebra::ObjectHelper

Instance Method Details

#declined?Boolean

Returns:

  • (Boolean)


24
25
26
# File 'lib/fat_zebra/refund.rb', line 24

def declined?
  refunded == 'Declined'
end