Sha256: e0d3e714587b3b8990c9604357c40347f68ef8cce203800aaf19e127aad66bec

Contents?: true

Size: 1.22 KB

Versions: 1

Compression:

Stored size: 1.22 KB

Contents

class TokyoMetro::App::Renderer::SideMenu::Link::ToOtherWebsite < TokyoMetro::App::Renderer::SideMenu::Link::MetaClass

  def initialize( request , title_ja , title_en , url , icon_name: nil )
    super(
      request ,
      title_ja ,
      title_en ,
      url ,
      icon_name: icon_name ,
      class_name_of_link: :link ,
      class_name_of_div_domain: :link_to_other_website ,
      open_another_window: true ,
      size: :small ,
      link_to_another_website: true
    )
  end

  def self.tokyo_metro_official( request )
    self.new(
      request ,
      "東京メトロ[公式]" ,
      "Tokyo Metro Official Page" ,
      "http://www.tokyometro.jp/index.html" ,
      icon_name: :tokyo_metro
    )
  end

  def self.top_of_opendata_contest( request )
    self.new(
      request ,
      [ "オープンデータ" , "活用コンテスト" ] ,
      "Open Data Competition" ,
      "http://tokyometro10th.jp/future/opendata/index.html" ,
      icon_name: :contest
    )
  end

  def self.top_for_developer( request )
    self.new(
      request ,
      [ "オープンデータ" , "開発者サイト" ] ,
      "Developers' page" ,
      "https://developer.tokyometroapp.jp/" ,
      icon_name: :development
    )
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tokyo_metro-0.10.1 lib/tokyo_metro/app/renderer/side_menu/link/to_other_website.rb