Sha256: 02b2c72ba8ff2fe8b69653e7ed9288b7e5892e7058d5799e1043143a7eaab06c
Contents?: true
Size: 452 Bytes
Versions: 3
Compression:
Stored size: 452 Bytes
Contents
module RpiMarca class Owner attr_reader :name, :country, :state def initialize(name:, country:, state:) @name = name @country = country @state = state end def self.parse(el) return unless el new( name: Helpers.get_attribute_value(el, 'nome-razao-social'), country: Helpers.get_attribute_value(el, 'pais'), state: Helpers.get_attribute_value(el, 'uf') ) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rpi_marca-0.0.3 | lib/rpi_marca/owner.rb |
rpi_marca-0.0.2 | lib/rpi_marca/owner.rb |
rpi_marca-0.0.1 | lib/rpi_marca/owner.rb |