Class: BBMB::Html::View::ShowPassComposite

Inherits:
HtmlGrid::DivComposite
  • Object
show all
Defined in:
lib/bbmb/html/view/show_pass.rb

Constant Summary collapse

COMPONENTS =
{
  [0,0] => :admin_address,
  [0,1] => :customer_address,
  [0,2] => " ",
  [0,3] => ShowPassInnerComposite,
}
CSS_ID_MAP =
{
  0 => 'admin-address',
  2 => 'divider',
}
CSS_MAP =
['address', 'address']

Instance Method Summary collapse

Instance Method Details

#admin_address(model) ⇒ Object



35
36
37
# File 'lib/bbmb/html/view/show_pass.rb', line 35

def admin_address(model)
  BBMB.config.admin_address.gsub("\n", "<br>")
end

#customer_address(model) ⇒ Object



38
39
40
# File 'lib/bbmb/html/view/show_pass.rb', line 38

def customer_address(model)
  model.address_lines.join('<br>')
end