Class: OneSignal::Buttons
- Inherits:
-
Object
- Object
- OneSignal::Buttons
- Defined in:
- lib/onesignal/buttons.rb
Instance Attribute Summary collapse
-
#buttons ⇒ Object
readonly
Returns the value of attribute buttons.
Instance Method Summary collapse
- #as_json(options = nil) ⇒ Object
-
#initialize(buttons: nil) ⇒ Buttons
constructor
A new instance of Buttons.
Constructor Details
#initialize(buttons: nil) ⇒ Buttons
Returns a new instance of Buttons.
7 8 9 |
# File 'lib/onesignal/buttons.rb', line 7 def initialize buttons: nil @buttons = end |
Instance Attribute Details
#buttons ⇒ Object (readonly)
Returns the value of attribute buttons.
5 6 7 |
# File 'lib/onesignal/buttons.rb', line 5 def @buttons end |
Instance Method Details
#as_json(options = nil) ⇒ Object
11 12 13 14 15 |
# File 'lib/onesignal/buttons.rb', line 11 def as_json = nil { 'buttons' => @buttons.as_json(), } end |