Class: Getui::Message
- Inherits:
-
Object
- Object
- Getui::Message
- Defined in:
- lib/getui/message.rb,
lib/getui/message/transmission.rb
Direct Known Subclasses
Defined Under Namespace
Classes: Transmission
Instance Attribute Summary collapse
-
#is_offline ⇒ Object
Returns the value of attribute is_offline.
-
#message_type ⇒ Object
Returns the value of attribute message_type.
-
#offline_expire_time ⇒ Object
Returns the value of attribute offline_expire_time.
-
#push_info ⇒ Object
Returns the value of attribute push_info.
-
#push_network_type ⇒ Object
Returns the value of attribute push_network_type.
-
#transmission_content ⇒ Object
Returns the value of attribute transmission_content.
-
#transmission_type ⇒ Object
Returns the value of attribute transmission_type.
Instance Method Summary collapse
- #as_json ⇒ Object
-
#initialize(message_type, is_offline: true, offline_expire_time: 7 * 24 * 60 * 60, push_network_type: 0) ⇒ Message
constructor
A new instance of Message.
Constructor Details
#initialize(message_type, is_offline: true, offline_expire_time: 7 * 24 * 60 * 60, push_network_type: 0) ⇒ Message
Returns a new instance of Message.
4 5 6 7 8 9 10 11 |
# File 'lib/getui/message.rb', line 4 def initialize(, is_offline: true, offline_expire_time: 7 * 24 * 60 * 60, push_network_type: 0) @transmission_type = 0 @transmission_content = "" @message_type = @is_offline = is_offline @offline_expire_time = offline_expire_time @push_network_type = push_network_type end |
Instance Attribute Details
#is_offline ⇒ Object
Returns the value of attribute is_offline.
3 4 5 |
# File 'lib/getui/message.rb', line 3 def is_offline @is_offline end |
#message_type ⇒ Object
Returns the value of attribute message_type.
3 4 5 |
# File 'lib/getui/message.rb', line 3 def @message_type end |
#offline_expire_time ⇒ Object
Returns the value of attribute offline_expire_time.
3 4 5 |
# File 'lib/getui/message.rb', line 3 def offline_expire_time @offline_expire_time end |
#push_info ⇒ Object
Returns the value of attribute push_info.
3 4 5 |
# File 'lib/getui/message.rb', line 3 def push_info @push_info end |
#push_network_type ⇒ Object
Returns the value of attribute push_network_type.
3 4 5 |
# File 'lib/getui/message.rb', line 3 def push_network_type @push_network_type end |
#transmission_content ⇒ Object
Returns the value of attribute transmission_content.
3 4 5 |
# File 'lib/getui/message.rb', line 3 def transmission_content @transmission_content end |
#transmission_type ⇒ Object
Returns the value of attribute transmission_type.
3 4 5 |
# File 'lib/getui/message.rb', line 3 def transmission_type @transmission_type end |