Class: OpenDaum::Calendar::Category
- Inherits:
-
Object
- Object
- OpenDaum::Calendar::Category
- Defined in:
- lib/opendaum/calendar.rb
Instance Attribute Summary collapse
-
#color ⇒ Object
Returns the value of attribute color.
-
#description ⇒ Object
Returns the value of attribute description.
-
#display_order ⇒ Object
Returns the value of attribute display_order.
-
#id ⇒ Object
Returns the value of attribute id.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
- #<<(event) ⇒ Object
- #create_event ⇒ Object
- #events(start_at = nil, end_at = nil) ⇒ Object
-
#initialize(access_token, attrs = {}) ⇒ Category
constructor
A new instance of Category.
- #inspect ⇒ Object
- #update(attrs = {}) ⇒ Object
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
#color ⇒ Object
Returns the value of attribute color.
38 39 40 |
# File 'lib/opendaum/calendar.rb', line 38 def color @color end |
#description ⇒ Object
Returns the value of attribute description.
38 39 40 |
# File 'lib/opendaum/calendar.rb', line 38 def description @description end |
#display_order ⇒ Object
Returns the value of attribute display_order.
38 39 40 |
# File 'lib/opendaum/calendar.rb', line 38 def display_order @display_order end |
#id ⇒ Object
Returns the value of attribute id.
38 39 40 |
# File 'lib/opendaum/calendar.rb', line 38 def id @id end |
#name ⇒ Object
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_event ⇒ Object
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 |
#inspect ⇒ Object
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 |