Class: Mobiscroll::Connect::Attendee
- Inherits:
-
Struct
- Object
- Struct
- Mobiscroll::Connect::Attendee
- Defined in:
- lib/mobiscroll/connect/models.rb
Instance Attribute Summary collapse
-
#email ⇒ Object
Returns the value of attribute email.
-
#organizer ⇒ Object
Returns the value of attribute organizer.
-
#status ⇒ Object
Returns the value of attribute status.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#email ⇒ Object
Returns the value of attribute email
114 115 116 |
# File 'lib/mobiscroll/connect/models.rb', line 114 def email @email end |
#organizer ⇒ Object
Returns the value of attribute organizer
114 115 116 |
# File 'lib/mobiscroll/connect/models.rb', line 114 def organizer @organizer end |
#status ⇒ Object
Returns the value of attribute status
114 115 116 |
# File 'lib/mobiscroll/connect/models.rb', line 114 def status @status end |
Class Method Details
.from_h(hash) ⇒ Object
115 116 117 118 119 120 121 122 123 |
# File 'lib/mobiscroll/connect/models.rb', line 115 def self.from_h(hash) return nil if hash.nil? new( email: hash['email'] || hash[:email], status: hash['status'] || hash[:status], organizer: hash['organizer'] || hash[:organizer] ) end |
Instance Method Details
#to_h ⇒ Object
125 126 127 128 129 130 |
# File 'lib/mobiscroll/connect/models.rb', line 125 def to_h result = { 'email' => email } result['status'] = status unless status.nil? result['organizer'] = organizer unless organizer.nil? result end |