Class: ZeusSdk::V1::WaitingListEmail
- Inherits:
-
Object
- Object
- ZeusSdk::V1::WaitingListEmail
- Defined in:
- lib/zeus_sdk/v1/models/auth/waiting_list_email.rb
Instance Attribute Summary collapse
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#id ⇒ Object
Returns the value of attribute id.
-
#name ⇒ Object
Returns the value of attribute name.
-
#raw ⇒ Object
Returns the value of attribute raw.
-
#updated_at ⇒ Object
Returns the value of attribute updated_at.
-
#waiting_list_id ⇒ Object
Returns the value of attribute waiting_list_id.
Instance Method Summary collapse
- #as_json(options = {}) ⇒ Object
-
#initialize(waiting_list_email) ⇒ WaitingListEmail
constructor
A new instance of WaitingListEmail.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(waiting_list_email) ⇒ WaitingListEmail
Returns a new instance of WaitingListEmail.
5 6 7 8 9 10 11 12 13 |
# File 'lib/zeus_sdk/v1/models/auth/waiting_list_email.rb', line 5 def initialize(waiting_list_email) return if waiting_list_email.blank? self.raw = waiting_list_email self.id = waiting_list_email["id"] self.waiting_list_id = waiting_list_email["waiting_list_id"] self.name = waiting_list_email["name"] if waiting_list_email.has_key?("name") self.created_at = waiting_list_email["created_at"] if waiting_list_email.has_key?("created_at") self.updated_at = waiting_list_email["updated_at"] if waiting_list_email.has_key?("updated_at") end |
Instance Attribute Details
#created_at ⇒ Object
Returns the value of attribute created_at.
3 4 5 |
# File 'lib/zeus_sdk/v1/models/auth/waiting_list_email.rb', line 3 def created_at @created_at end |
#id ⇒ Object
Returns the value of attribute id.
3 4 5 |
# File 'lib/zeus_sdk/v1/models/auth/waiting_list_email.rb', line 3 def id @id end |
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'lib/zeus_sdk/v1/models/auth/waiting_list_email.rb', line 3 def name @name end |
#raw ⇒ Object
Returns the value of attribute raw.
3 4 5 |
# File 'lib/zeus_sdk/v1/models/auth/waiting_list_email.rb', line 3 def raw @raw end |
#updated_at ⇒ Object
Returns the value of attribute updated_at.
3 4 5 |
# File 'lib/zeus_sdk/v1/models/auth/waiting_list_email.rb', line 3 def updated_at @updated_at end |
#waiting_list_id ⇒ Object
Returns the value of attribute waiting_list_id.
3 4 5 |
# File 'lib/zeus_sdk/v1/models/auth/waiting_list_email.rb', line 3 def waiting_list_id @waiting_list_id end |
Instance Method Details
#as_json(options = {}) ⇒ Object
15 16 17 18 19 20 21 22 23 |
# File 'lib/zeus_sdk/v1/models/auth/waiting_list_email.rb', line 15 def as_json(={}) { id: self.id, waiting_list_id: self.waiting_list_id, name: self.name, created_at: self.created_at, updated_at: self.updated_at } end |
#to_json(options = {}) ⇒ Object
25 26 27 |
# File 'lib/zeus_sdk/v1/models/auth/waiting_list_email.rb', line 25 def to_json(={}) self.as_json().to_json end |