Sha256: 2ad5b136add2cdb16937f79ebe9018d1b583e5c4db1f81b00bac05f077352519
Contents?: true
Size: 1023 Bytes
Versions: 2
Compression:
Stored size: 1023 Bytes
Contents
module Emites module Entities class Nfse < Base attribute :id, Integer attribute :emitter_id, Integer attribute :taker, Taker attribute :rps_situation, Integer attribute :serie, String attribute :number, Integer attribute :rps_type, Integer attribute :emission_date, DateTime attribute :operation_nature, Integer attribute :other_informations, String attribute :competence, Date attribute :special_regime, Integer attribute :status, String attribute :description, String attribute :send_nfse_taker, Boolean attribute :service_values, NfseValues attribute :_links, Array def url(action) links = self._links || [] link = links.find { |link| link["rel"].to_s == action.to_s } || {} link.fetch("href") { "" } end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
emites-client-0.0.3 | lib/emites/entities/nfse.rb |
emites-client-0.0.2 | lib/emites/entities/nfse.rb |