Class: Iknow::List::Application

Inherits:
Base
  • Object
show all
Defined in:
lib/iknow/model/list.rb

Constant Summary collapse

ATTRIBUTES =
[:application, :list_id, :lang]

Instance Method Summary collapse

Methods inherited from Base

attributes, #attributes, deserialize, #deserialize

Constructor Details

#initialize(params = {}) ⇒ Application

Returns a new instance of Application.



29
30
31
32
33
# File 'lib/iknow/model/list.rb', line 29

def initialize(params = {})
  @application  = params[:application]
  @list_id      = params[:list_id]
  @lang         = params[:lang]
end

Instance Method Details

#urlObject



34
35
36
# File 'lib/iknow/model/list.rb', line 34

def url
  "http://www.iknow.co.jp/flash?swf=#{self.name}&course_id=#{self.list_id}&lang=#{self.lang}"
end