Class: Conquiro::SearchAPI::SoftwareSerializer

Inherits:
Struct
  • Object
show all
Defined in:
lib/conquiro/search_api/software_serializer.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#attributesObject

Returns the value of attribute attributes



6
7
8
# File 'lib/conquiro/search_api/software_serializer.rb', line 6

def attributes
  @attributes
end

Instance Method Details

#serializeObject



7
8
9
10
11
12
13
# File 'lib/conquiro/search_api/software_serializer.rb', line 7

def serialize
  app = Conquiro::Software.new
  attributes.each { |name, value|
    app[name.underscore] = value
  }
  app
end