Sha256: f28b3252ca62ab1735f29a860f5eef0178c60e52f4dac4ad8112f02a440e53bc
Contents?: true
Size: 436 Bytes
Versions: 1
Compression:
Stored size: 436 Bytes
Contents
module Ocar class Status attr_reader :number, :owner, :description, :date, :location, :type def initialize(json) puts json['data'] @number = json['data'][0]['numeroPieza'].to_s @owner = json['data'][0]['titular'] @description = json['data'][0]['descripcion'] @date = json['data'][0]['fecha'] @location = json['data'][0]['sucursal'] @type = json['data'][0]['tipo'] end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ocar-0.1.0 | lib/ocar/status.rb |