class Giftrocket::FundingSource
Attributes
id[RW]
meta[RW]
method[RW]
Public Class Methods
list(filters={})
click to toggle source
# File lib/giftrocket/funding_source.rb, line 13 def self.list(filters={}) Giftrocket::Request.get( 'funding_sources', query: filters.merge(Giftrocket.default_options), format: 'json' )[:funding_sources].map do |funding_souce_attributes| Giftrocket::FundingSource.new(funding_souce_attributes) end end
new(attributes)
click to toggle source
# File lib/giftrocket/funding_source.rb, line 6 def initialize(attributes) attributes = attributes.with_indifferent_access self.id = attributes[:id] self.method = attributes[:method] self.meta = attributes[:meta] end