Class: OpenDaum::Calendar::Category

Inherits:
Object
  • Object
show all
Defined in:
lib/opendaum/calendar.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(access_token, attrs = {}) ⇒ Category



40
41
42
43
# File 'lib/opendaum/calendar.rb', line 40

def initialize access_token, attrs = {}
  @access_token = access_token
  attrs.each {|k, v| self.send("#{k}=", v) }
end

Instance Attribute Details

#colorObject

Returns the value of attribute color.



38
39
40
# File 'lib/opendaum/calendar.rb', line 38

def color
  @color
end

#descriptionObject

Returns the value of attribute description.



38
39
40
# File 'lib/opendaum/calendar.rb', line 38

def description
  @description
end

#display_orderObject

Returns the value of attribute display_order.



38
39
40
# File 'lib/opendaum/calendar.rb', line 38

def display_order
  @display_order
end

#idObject

Returns the value of attribute id.



38
39
40
# File 'lib/opendaum/calendar.rb', line 38

def id
  @id
end

#nameObject

Returns the value of attribute name.



38
39
40
# File 'lib/opendaum/calendar.rb', line 38

def name
  @name
end

Instance Method Details

#<<(event) ⇒ Object



55
56
# File 'lib/opendaum/calendar.rb', line 55

def << event
end

#create_eventObject



45
46
# File 'lib/opendaum/calendar.rb', line 45

def create_event
end

#events(start_at = nil, end_at = nil) ⇒ Object



51
52
53
# File 'lib/opendaum/calendar.rb', line 51

def events start_at = nil, end_at = nil
  puts "호출은 됐음"
end

#inspectObject



58
59
60
# File 'lib/opendaum/calendar.rb', line 58

def inspect
  "<\#캘린더:#{self.id}:#{self.name}:#{self.color}>"
end

#update(attrs = {}) ⇒ Object



48
49
# File 'lib/opendaum/calendar.rb', line 48

def update attrs = {}
end