Class: APNS::Element
- Inherits:
-
Object
- Object
- APNS::Element
- Defined in:
- lib/apns/infinite_array.rb
Instance Attribute Summary collapse
-
#index ⇒ Object
Returns the value of attribute index.
-
#item ⇒ Object
Returns the value of attribute item.
Instance Method Summary collapse
-
#initialize(index:, item:) ⇒ Element
constructor
A new instance of Element.
Constructor Details
#initialize(index:, item:) ⇒ Element
Returns a new instance of Element.
5 6 7 8 |
# File 'lib/apns/infinite_array.rb', line 5 def initialize(index:, item:) self.index = index self.item = item end |
Instance Attribute Details
#index ⇒ Object
Returns the value of attribute index.
4 5 6 |
# File 'lib/apns/infinite_array.rb', line 4 def index @index end |
#item ⇒ Object
Returns the value of attribute item.
4 5 6 |
# File 'lib/apns/infinite_array.rb', line 4 def item @item end |