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
86 87 88 |
# File 'lib/mobiscroll/connect/models.rb', line 86 def email @email end |
#organizer ⇒ Object
Returns the value of attribute organizer
86 87 88 |
# File 'lib/mobiscroll/connect/models.rb', line 86 def organizer @organizer end |
#status ⇒ Object
Returns the value of attribute status
86 87 88 |
# File 'lib/mobiscroll/connect/models.rb', line 86 def status @status end |
Class Method Details
.from_h(hash) ⇒ Object
87 88 89 90 91 92 93 94 95 |
# File 'lib/mobiscroll/connect/models.rb', line 87 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
97 98 99 100 101 102 |
# File 'lib/mobiscroll/connect/models.rb', line 97 def to_h result = { 'email' => email } result['status'] = status unless status.nil? result['organizer'] = organizer unless organizer.nil? result end |