class Epages::CustomAttribute
Constants
- KEYS
Public Class Methods
new(data)
click to toggle source
# File lib/epages/custom_attribute.rb, line 11 def initialize(data) parse_attributes(data) end
Public Instance Methods
formatted_attributes()
click to toggle source
return a Hash with the display value as key and an array with all the displayValue as value
# File lib/epages/custom_attribute.rb, line 16 def formatted_attributes Hash[display_key.downcase.to_sym, values.collect { |el| el[:displayValue] }] end