Class: OpenDaum::Calendar::Event
- Inherits:
-
Object
- Object
- OpenDaum::Calendar::Event
- Defined in:
- lib/opendaum/calendar.rb
Instance Attribute Summary collapse
-
#allday ⇒ Object
Returns the value of attribute allday.
-
#attach ⇒ Object
Returns the value of attribute attach.
-
#category_id ⇒ Object
Returns the value of attribute category_id.
-
#completed_at ⇒ Object
Returns the value of attribute completed_at.
-
#description ⇒ Object
Returns the value of attribute description.
-
#end_at ⇒ Object
Returns the value of attribute end_at.
-
#exdates ⇒ Object
Returns the value of attribute exdates.
-
#id ⇒ Object
Returns the value of attribute id.
-
#location ⇒ Object
Returns the value of attribute location.
-
#repeat ⇒ Object
Returns the value of attribute repeat.
-
#rrule ⇒ Object
Returns the value of attribute rrule.
-
#start_at ⇒ Object
Returns the value of attribute start_at.
-
#title ⇒ Object
Returns the value of attribute title.
-
#uid ⇒ Object
Returns the value of attribute uid.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(access_token, attrs = {}) ⇒ Event
constructor
A new instance of Event.
- #inspect ⇒ Object
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
#allday ⇒ Object
Returns the value of attribute allday.
64 65 66 |
# File 'lib/opendaum/calendar.rb', line 64 def allday @allday end |
#attach ⇒ Object
Returns the value of attribute attach.
64 65 66 |
# File 'lib/opendaum/calendar.rb', line 64 def attach @attach end |
#category_id ⇒ Object
Returns the value of attribute category_id.
64 65 66 |
# File 'lib/opendaum/calendar.rb', line 64 def category_id @category_id end |
#completed_at ⇒ Object
Returns the value of attribute completed_at.
64 65 66 |
# File 'lib/opendaum/calendar.rb', line 64 def completed_at @completed_at end |
#description ⇒ Object
Returns the value of attribute description.
64 65 66 |
# File 'lib/opendaum/calendar.rb', line 64 def description @description end |
#end_at ⇒ Object
Returns the value of attribute end_at.
64 65 66 |
# File 'lib/opendaum/calendar.rb', line 64 def end_at @end_at end |
#exdates ⇒ Object
Returns the value of attribute exdates.
64 65 66 |
# File 'lib/opendaum/calendar.rb', line 64 def exdates @exdates end |
#id ⇒ Object
Returns the value of attribute id.
64 65 66 |
# File 'lib/opendaum/calendar.rb', line 64 def id @id end |
#location ⇒ Object
Returns the value of attribute location.
64 65 66 |
# File 'lib/opendaum/calendar.rb', line 64 def location @location end |
#repeat ⇒ Object
Returns the value of attribute repeat.
64 65 66 |
# File 'lib/opendaum/calendar.rb', line 64 def repeat @repeat end |
#rrule ⇒ Object
Returns the value of attribute rrule.
64 65 66 |
# File 'lib/opendaum/calendar.rb', line 64 def rrule @rrule end |
#start_at ⇒ Object
Returns the value of attribute start_at.
64 65 66 |
# File 'lib/opendaum/calendar.rb', line 64 def start_at @start_at end |
#title ⇒ Object
Returns the value of attribute title.
64 65 66 |
# File 'lib/opendaum/calendar.rb', line 64 def title @title end |
#uid ⇒ Object
Returns the value of attribute uid.
64 65 66 |
# File 'lib/opendaum/calendar.rb', line 64 def uid @uid end |
#url ⇒ Object
Returns the value of attribute url.
64 65 66 |
# File 'lib/opendaum/calendar.rb', line 64 def url @url end |
Instance Method Details
#inspect ⇒ Object
71 72 73 |
# File 'lib/opendaum/calendar.rb', line 71 def inspect "<\#일정:#{self.id}:#{self.title}:#{self.start_at}-#{self.end_at}>" end |