Class: Iknow::List::Application
- Inherits:
-
Object
- Object
- Iknow::List::Application
- Defined in:
- lib/iknow/model/list.rb
Instance Attribute Summary collapse
-
#application ⇒ Object
readonly
Returns the value of attribute application.
-
#lang ⇒ Object
readonly
Returns the value of attribute lang.
-
#list_id ⇒ Object
readonly
Returns the value of attribute list_id.
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ Application
constructor
A new instance of Application.
- #url ⇒ Object
Constructor Details
#initialize(params = {}) ⇒ Application
Returns a new instance of Application.
27 28 29 30 31 |
# File 'lib/iknow/model/list.rb', line 27 def initialize(params = {}) @application = params[:application] @list_id = params[:list_id] @lang = params[:lang] end |
Instance Attribute Details
#application ⇒ Object (readonly)
Returns the value of attribute application.
26 27 28 |
# File 'lib/iknow/model/list.rb', line 26 def application @application end |
#lang ⇒ Object (readonly)
Returns the value of attribute lang.
26 27 28 |
# File 'lib/iknow/model/list.rb', line 26 def lang @lang end |
#list_id ⇒ Object (readonly)
Returns the value of attribute list_id.
26 27 28 |
# File 'lib/iknow/model/list.rb', line 26 def list_id @list_id end |
Instance Method Details
#url ⇒ Object
32 33 34 |
# File 'lib/iknow/model/list.rb', line 32 def url "http://www.iknow.co.jp/flash?swf=#{self.name}&course_id=#{self.list_id}&lang=#{self.lang}" end |