Class: Account

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
lib/statements/models/account.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.as_json(options = nil) ⇒ Object



2
3
4
# File 'lib/statements/models/account.rb', line 2

def self.as_json(options = nil)
  order('name asc').map &:as_json
end

Instance Method Details

#as_json(options = nil) ⇒ Object



6
7
8
# File 'lib/statements/models/account.rb', line 6

def as_json(options = nil)
  slice :id, :name, :number
end