Method: Countir::AccountCode.response_schema
- Defined in:
- lib/countir/resources/account_code.rb
.response_schema(data) ⇒ Object
14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/countir/resources/account_code.rb', line 14 def self.response_schema(data) data.map do |r| self.new( id: r["id"], account_name: r["account_name"], account_name_en: r["account_name_en"], phonetic_kana: r["phonetic_kana"], phonetic_romaji: r["phonetic_romaji"], account_type: r["account_type"] ) end end |