Class: Mobiscroll::Connect::Calendar
- Inherits:
-
Struct
- Object
- Struct
- Mobiscroll::Connect::Calendar
- Defined in:
- lib/mobiscroll/connect/models.rb
Overview
A calendar exposed by one of the supported providers.
Instance Attribute Summary collapse
-
#color ⇒ Object
Returns the value of attribute color.
-
#description ⇒ Object
Returns the value of attribute description.
-
#id ⇒ Object
Returns the value of attribute id.
-
#original ⇒ Object
Returns the value of attribute original.
-
#provider ⇒ Object
Returns the value of attribute provider.
-
#time_zone ⇒ Object
Returns the value of attribute time_zone.
-
#title ⇒ Object
Returns the value of attribute title.
Class Method Summary collapse
Instance Attribute Details
#color ⇒ Object
Returns the value of attribute color
70 71 72 |
# File 'lib/mobiscroll/connect/models.rb', line 70 def color @color end |
#description ⇒ Object
Returns the value of attribute description
70 71 72 |
# File 'lib/mobiscroll/connect/models.rb', line 70 def description @description end |
#id ⇒ Object
Returns the value of attribute id
70 71 72 |
# File 'lib/mobiscroll/connect/models.rb', line 70 def id @id end |
#original ⇒ Object
Returns the value of attribute original
70 71 72 |
# File 'lib/mobiscroll/connect/models.rb', line 70 def original @original end |
#provider ⇒ Object
Returns the value of attribute provider
70 71 72 |
# File 'lib/mobiscroll/connect/models.rb', line 70 def provider @provider end |
#time_zone ⇒ Object
Returns the value of attribute time_zone
70 71 72 |
# File 'lib/mobiscroll/connect/models.rb', line 70 def time_zone @time_zone end |
#title ⇒ Object
Returns the value of attribute title
70 71 72 |
# File 'lib/mobiscroll/connect/models.rb', line 70 def title @title end |
Class Method Details
.from_h(hash) ⇒ Object
71 72 73 74 75 76 77 78 79 80 81 82 83 |
# File 'lib/mobiscroll/connect/models.rb', line 71 def self.from_h(hash) return nil if hash.nil? new( provider: hash['provider'] || hash[:provider], id: hash['id'] || hash[:id], title: hash['title'] || hash[:title], time_zone: hash['timeZone'] || hash[:timeZone] || hash['time_zone'], color: hash['color'] || hash[:color], description: hash['description'] || hash[:description], original: hash['original'] || hash[:original] ) end |