Class: Conquiro::SearchAPI::SoftwareSerializer
- Inherits:
-
Struct
- Object
- Struct
- Conquiro::SearchAPI::SoftwareSerializer
- Defined in:
- lib/conquiro/search_api/software_serializer.rb
Instance Attribute Summary collapse
-
#attributes ⇒ Object
Returns the value of attribute attributes.
Instance Method Summary collapse
Instance Attribute Details
#attributes ⇒ Object
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
#serialize ⇒ Object
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 |