Class: OpenDaum::Calendar::Event

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 = {}) ⇒ Event

Returns a new instance of Event.



66
67
68
69
# File 'lib/opendaum/calendar.rb', line 66

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

Instance Attribute Details

#alldayObject

Returns the value of attribute allday.



64
65
66
# File 'lib/opendaum/calendar.rb', line 64

def allday
  @allday
end

#attachObject

Returns the value of attribute attach.



64
65
66
# File 'lib/opendaum/calendar.rb', line 64

def attach
  @attach
end

#category_idObject

Returns the value of attribute category_id.



64
65
66
# File 'lib/opendaum/calendar.rb', line 64

def category_id
  @category_id
end

#completed_atObject

Returns the value of attribute completed_at.



64
65
66
# File 'lib/opendaum/calendar.rb', line 64

def completed_at
  @completed_at
end

#descriptionObject

Returns the value of attribute description.



64
65
66
# File 'lib/opendaum/calendar.rb', line 64

def description
  @description
end

#end_atObject

Returns the value of attribute end_at.



64
65
66
# File 'lib/opendaum/calendar.rb', line 64

def end_at
  @end_at
end

#exdatesObject

Returns the value of attribute exdates.



64
65
66
# File 'lib/opendaum/calendar.rb', line 64

def exdates
  @exdates
end

#idObject

Returns the value of attribute id.



64
65
66
# File 'lib/opendaum/calendar.rb', line 64

def id
  @id
end

#locationObject

Returns the value of attribute location.



64
65
66
# File 'lib/opendaum/calendar.rb', line 64

def location
  @location
end

#repeatObject

Returns the value of attribute repeat.



64
65
66
# File 'lib/opendaum/calendar.rb', line 64

def repeat
  @repeat
end

#rruleObject

Returns the value of attribute rrule.



64
65
66
# File 'lib/opendaum/calendar.rb', line 64

def rrule
  @rrule
end

#start_atObject

Returns the value of attribute start_at.



64
65
66
# File 'lib/opendaum/calendar.rb', line 64

def start_at
  @start_at
end

#titleObject

Returns the value of attribute title.



64
65
66
# File 'lib/opendaum/calendar.rb', line 64

def title
  @title
end

#uidObject

Returns the value of attribute uid.



64
65
66
# File 'lib/opendaum/calendar.rb', line 64

def uid
  @uid
end

#urlObject

Returns the value of attribute url.



64
65
66
# File 'lib/opendaum/calendar.rb', line 64

def url
  @url
end

Instance Method Details

#inspectObject



71
72
73
# File 'lib/opendaum/calendar.rb', line 71

def inspect
  "<\#일정:#{self.id}:#{self.title}:#{self.start_at}-#{self.end_at}>"
end