class RpiMarca::PreviousApplication
Attributes
application[R]
trademark[R]
Public Class Methods
new(application:, trademark:)
click to toggle source
# File lib/rpi_marca/previous_application.rb, line 5 def initialize(application:, trademark:) @application = application @trademark = trademark end
parse(el)
click to toggle source
# File lib/rpi_marca/previous_application.rb, line 10 def self.parse(el) return unless el new( application: Helpers.get_attribute_value(el, 'processo'), trademark: Helpers.get_attribute_value(el, 'marca') ) end