class EcwidApi::ProductTypeAttribute
Constants
- VALID_SHOWS
- VALID_TYPES
Public Instance Methods
show=(show_type)
click to toggle source
Calls superclass method
# File lib/ecwid_api/product_type_attribute.rb, line 19 def show=(show_type) show_type = show_type.to_s.upcase unless VALID_SHOWS.include?(show_type) raise ::StandardError.new("#{show_type} is an invalid 'show'") end super(show_type) end
type=(type_type)
click to toggle source
Calls superclass method
# File lib/ecwid_api/product_type_attribute.rb, line 10 def type=(type_type) type_type = type_type.to_s.upcase unless VALID_TYPES.include?(type_type) raise ::StandardError.new("#{type_type} is an invalid 'type'") end super(type_type) end