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
134 135 136 |
# File 'lib/mobiscroll/connect/models.rb', line 134 def all_day @all_day end |
#attendees ⇒ Object
Returns the value of attribute attendees
134 135 136 |
# File 'lib/mobiscroll/connect/models.rb', line 134 def attendees @attendees end |
#availability ⇒ Object
Returns the value of attribute availability
134 135 136 |
# File 'lib/mobiscroll/connect/models.rb', line 134 def availability @availability end |
#calendar_id ⇒ Object
Returns the value of attribute calendar_id
134 135 136 |
# File 'lib/mobiscroll/connect/models.rb', line 134 def calendar_id @calendar_id end |
#color ⇒ Object
Returns the value of attribute color
134 135 136 |
# File 'lib/mobiscroll/connect/models.rb', line 134 def color @color end |
#conference ⇒ Object
Returns the value of attribute conference
134 135 136 |
# File 'lib/mobiscroll/connect/models.rb', line 134 def conference @conference end |
#conference_data ⇒ Object
Returns the value of attribute conference_data
134 135 136 |
# File 'lib/mobiscroll/connect/models.rb', line 134 def conference_data @conference_data end |
#custom ⇒ Object
Returns the value of attribute custom
134 135 136 |
# File 'lib/mobiscroll/connect/models.rb', line 134 def custom @custom end |
#description ⇒ Object
Returns the value of attribute description
134 135 136 |
# File 'lib/mobiscroll/connect/models.rb', line 134 def description @description end |
#end_time ⇒ Object
Returns the value of attribute end_time
134 135 136 |
# File 'lib/mobiscroll/connect/models.rb', line 134 def end_time @end_time end |
#id ⇒ Object
Returns the value of attribute id
134 135 136 |
# File 'lib/mobiscroll/connect/models.rb', line 134 def id @id end |
#last_modified ⇒ Object
Returns the value of attribute last_modified
134 135 136 |
# File 'lib/mobiscroll/connect/models.rb', line 134 def last_modified @last_modified end |
#link ⇒ Object
Returns the value of attribute link
134 135 136 |
# File 'lib/mobiscroll/connect/models.rb', line 134 def link @link end |
#location ⇒ Object
Returns the value of attribute location
134 135 136 |
# File 'lib/mobiscroll/connect/models.rb', line 134 def location @location end |
#original ⇒ Object
Returns the value of attribute original
134 135 136 |
# File 'lib/mobiscroll/connect/models.rb', line 134 def original @original end |
#privacy ⇒ Object
Returns the value of attribute privacy
134 135 136 |
# File 'lib/mobiscroll/connect/models.rb', line 134 def privacy @privacy end |
#provider ⇒ Object
Returns the value of attribute provider
134 135 136 |
# File 'lib/mobiscroll/connect/models.rb', line 134 def provider @provider end |
#recurring_event_id ⇒ Object
Returns the value of attribute recurring_event_id
134 135 136 |
# File 'lib/mobiscroll/connect/models.rb', line 134 def recurring_event_id @recurring_event_id end |
#start ⇒ Object
Returns the value of attribute start
134 135 136 |
# File 'lib/mobiscroll/connect/models.rb', line 134 def start @start end |
#status ⇒ Object
Returns the value of attribute status
134 135 136 |
# File 'lib/mobiscroll/connect/models.rb', line 134 def status @status end |
#title ⇒ Object
Returns the value of attribute title
134 135 136 |
# File 'lib/mobiscroll/connect/models.rb', line 134 def title @title end |
Class Method Details
.from_h(hash) ⇒ Object
140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 |
# File 'lib/mobiscroll/connect/models.rb', line 140 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 |