Class: Mobiscroll::Connect::CalendarEvent
- Inherits:
-
Struct
- Object
- Struct
- Mobiscroll::Connect::CalendarEvent
- Defined in:
- lib/mobiscroll/connect/models.rb
Overview
An event returned by the API. Field set mirrors the Node SDK exactly.
Instance Attribute Summary collapse
-
#all_day ⇒ Object
Returns the value of attribute all_day.
-
#attendees ⇒ Object
Returns the value of attribute attendees.
-
#availability ⇒ Object
Returns the value of attribute availability.
-
#calendar_id ⇒ Object
Returns the value of attribute calendar_id.
-
#color ⇒ Object
Returns the value of attribute color.
-
#conference ⇒ Object
Returns the value of attribute conference.
-
#conference_data ⇒ Object
Returns the value of attribute conference_data.
-
#custom ⇒ Object
Returns the value of attribute custom.
-
#description ⇒ Object
Returns the value of attribute description.
-
#end_time ⇒ Object
Returns the value of attribute end_time.
-
#id ⇒ Object
Returns the value of attribute id.
-
#last_modified ⇒ Object
Returns the value of attribute last_modified.
-
#link ⇒ Object
Returns the value of attribute link.
-
#location ⇒ Object
Returns the value of attribute location.
-
#original ⇒ Object
Returns the value of attribute original.
-
#privacy ⇒ Object
Returns the value of attribute privacy.
-
#provider ⇒ Object
Returns the value of attribute provider.
-
#recurring_event_id ⇒ Object
Returns the value of attribute recurring_event_id.
-
#start ⇒ Object
Returns the value of attribute start.
-
#status ⇒ Object
Returns the value of attribute status.
-
#title ⇒ Object
Returns the value of attribute title.
Class Method Summary collapse
Instance Attribute Details
#all_day ⇒ Object
Returns the value of attribute all_day
106 107 108 |
# File 'lib/mobiscroll/connect/models.rb', line 106 def all_day @all_day end |
#attendees ⇒ Object
Returns the value of attribute attendees
106 107 108 |
# File 'lib/mobiscroll/connect/models.rb', line 106 def attendees @attendees end |
#availability ⇒ Object
Returns the value of attribute availability
106 107 108 |
# File 'lib/mobiscroll/connect/models.rb', line 106 def availability @availability end |
#calendar_id ⇒ Object
Returns the value of attribute calendar_id
106 107 108 |
# File 'lib/mobiscroll/connect/models.rb', line 106 def calendar_id @calendar_id end |
#color ⇒ Object
Returns the value of attribute color
106 107 108 |
# File 'lib/mobiscroll/connect/models.rb', line 106 def color @color end |
#conference ⇒ Object
Returns the value of attribute conference
106 107 108 |
# File 'lib/mobiscroll/connect/models.rb', line 106 def conference @conference end |
#conference_data ⇒ Object
Returns the value of attribute conference_data
106 107 108 |
# File 'lib/mobiscroll/connect/models.rb', line 106 def conference_data @conference_data end |
#custom ⇒ Object
Returns the value of attribute custom
106 107 108 |
# File 'lib/mobiscroll/connect/models.rb', line 106 def custom @custom end |
#description ⇒ Object
Returns the value of attribute description
106 107 108 |
# File 'lib/mobiscroll/connect/models.rb', line 106 def description @description end |
#end_time ⇒ Object
Returns the value of attribute end_time
106 107 108 |
# File 'lib/mobiscroll/connect/models.rb', line 106 def end_time @end_time end |
#id ⇒ Object
Returns the value of attribute id
106 107 108 |
# File 'lib/mobiscroll/connect/models.rb', line 106 def id @id end |
#last_modified ⇒ Object
Returns the value of attribute last_modified
106 107 108 |
# File 'lib/mobiscroll/connect/models.rb', line 106 def last_modified @last_modified end |
#link ⇒ Object
Returns the value of attribute link
106 107 108 |
# File 'lib/mobiscroll/connect/models.rb', line 106 def link @link end |
#location ⇒ Object
Returns the value of attribute location
106 107 108 |
# File 'lib/mobiscroll/connect/models.rb', line 106 def location @location end |
#original ⇒ Object
Returns the value of attribute original
106 107 108 |
# File 'lib/mobiscroll/connect/models.rb', line 106 def original @original end |
#privacy ⇒ Object
Returns the value of attribute privacy
106 107 108 |
# File 'lib/mobiscroll/connect/models.rb', line 106 def privacy @privacy end |
#provider ⇒ Object
Returns the value of attribute provider
106 107 108 |
# File 'lib/mobiscroll/connect/models.rb', line 106 def provider @provider end |
#recurring_event_id ⇒ Object
Returns the value of attribute recurring_event_id
106 107 108 |
# File 'lib/mobiscroll/connect/models.rb', line 106 def recurring_event_id @recurring_event_id end |
#start ⇒ Object
Returns the value of attribute start
106 107 108 |
# File 'lib/mobiscroll/connect/models.rb', line 106 def start @start end |
#status ⇒ Object
Returns the value of attribute status
106 107 108 |
# File 'lib/mobiscroll/connect/models.rb', line 106 def status @status end |
#title ⇒ Object
Returns the value of attribute title
106 107 108 |
# File 'lib/mobiscroll/connect/models.rb', line 106 def title @title end |
Class Method Details
.from_h(hash) ⇒ Object
112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 |
# File 'lib/mobiscroll/connect/models.rb', line 112 def self.from_h(hash) return nil if hash.nil? attendees = hash['attendees'] || hash[:attendees] attendees = attendees.map { |a| Attendee.from_h(a) } if attendees.is_a?(Array) new( provider: hash['provider'] || hash[:provider], id: hash['id'] || hash[:id], calendar_id: hash['calendarId'] || hash[:calendarId], title: hash['title'] || hash[:title], description: hash['description'] || hash[:description], start: hash['start'] || hash[:start], end_time: hash['end'] || hash[:end], all_day: hash['allDay'] || hash[:allDay], recurring_event_id: hash['recurringEventId'] || hash[:recurringEventId], color: hash['color'] || hash[:color], location: hash['location'] || hash[:location], attendees: attendees, custom: hash['custom'] || hash[:custom], conference: hash['conference'] || hash[:conference], conference_data: hash['conferenceData'] || hash[:conferenceData], availability: hash['availability'] || hash[:availability], privacy: hash['privacy'] || hash[:privacy], status: hash['status'] || hash[:status], last_modified: hash['lastModified'] || hash[:lastModified], link: hash['link'] || hash[:link], original: hash['original'] || hash[:original] ) end |