Sha256: 0a3ac38eb0e89aeccec3a5dd7ec33d6b4f55b851093a1b401ba8ebbc2c4b0c2b
Contents?: true
Size: 412 Bytes
Versions: 2
Compression:
Stored size: 412 Bytes
Contents
module Ocar class Status attr_reader :number, :owner, :description, :date, :location, :type def initialize(json) @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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ocar-0.2.1 | lib/ocar/status.rb |
ocar-0.2.0 | lib/ocar/status.rb |