Class: Cloudrider::Apiv1::ProductShowEmblem::Context

Inherits:
Object
  • Object
show all
Defined in:
lib/cloudrider/apiv1/product_show_emblem.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#show_styleObject

Returns the value of attribute show_style.



3
4
5
# File 'lib/cloudrider/apiv1/product_show_emblem.rb', line 3

def show_style
  @show_style
end

Instance Method Details

#online_offerable?Boolean

Returns:

  • (Boolean)


4
5
6
7
8
9
10
11
# File 'lib/cloudrider/apiv1/product_show_emblem.rb', line 4

def online_offerable?
  case show_style.to_s
  when "ecommerce"
    true
  else
    false
  end
end