Class: Emites::Entities::Nfse

Inherits:
Base
  • Object
show all
Defined in:
lib/emites/entities/nfse.rb

Instance Method Summary collapse

Instance Method Details

#url(action) ⇒ Object



24
25
26
27
28
# File 'lib/emites/entities/nfse.rb', line 24

def url(action)
  links = self._links || []
  link  = links.find { |link| link["rel"].to_s == action.to_s } || {}
  link.fetch("href") { "" }
end