Class: Leeno::Model::Canvas

Inherits:
Base
  • Object
show all
Defined in:
lib/leeno/model/canvas.rb

Constant Summary collapse

FIELDS =
[
   :canvas_id,
   :title,
   :name,
   :width,
   :height,
   :tags,
   :total_history,
   :total_favorite,
   :create_date,
   :update_date
]

Instance Method Summary collapse

Methods inherited from Base

#exclude_options!, #exclude_options?, #include_options!, #to_json

Constructor Details

#initialize(data = {}) ⇒ Canvas

Returns a new instance of Canvas.



17
18
19
# File 'lib/leeno/model/canvas.rb', line 17

def initialize data={}
  super(data)
end

Instance Method Details

#historiesObject



21
22
23
# File 'lib/leeno/model/canvas.rb', line 21

def histories
  @histories ||= Leeno::Array.new( Api::History.find_histories(canvas_id) )
end