Sha256: 15d02e0b77dc91cf567154da355562dd50c46fedad67aabc47513db6501d6bbf

Contents?: true

Size: 412 Bytes

Versions: 3

Compression:

Stored size: 412 Bytes

Contents

module RpiMarca
  class PreviousApplication
    attr_reader :application, :trademark

    def initialize(application:, trademark:)
      @application = application
      @trademark = trademark
    end

    def self.parse(el)
      return unless el

      new(
        application: Helpers.get_attribute_value(el, 'processo'),
        trademark: Helpers.get_attribute_value(el, 'marca')
      )
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rpi_marca-0.0.3 lib/rpi_marca/previous_application.rb
rpi_marca-0.0.2 lib/rpi_marca/previous_application.rb
rpi_marca-0.0.1 lib/rpi_marca/previous_application.rb