Sha256: 488e75497daa886c034a38cd060fa5d920ce21d74c55a88e830c9c738ad2c078
Contents?: true
Size: 397 Bytes
Versions: 9
Compression:
Stored size: 397 Bytes
Contents
module Plaid class Category attr_accessor :type, :hierarchy, :id def initialize(fields = {}) @type = fields['type'] @hierarchy = fields['hierarchy'] @id = fields['id'] end # API: semi-private # This method takes an array returned from the API and instantiates all of the categories def self.all(res) res.map { |cat| new(cat) } end end end
Version data entries
9 entries across 9 versions & 1 rubygems