Class: Pacer::Payload::Element
- Inherits:
-
Object
- Object
- Pacer::Payload::Element
- Extended by:
- Forwardable
- Defined in:
- lib/pacer/blueprints/payload_elements.rb
Instance Attribute Summary collapse
-
#element ⇒ Object
readonly
Returns the value of attribute element.
-
#payload ⇒ Object
Returns the value of attribute payload.
Instance Method Summary collapse
-
#initialize(element, payload = nil) ⇒ Element
constructor
A new instance of Element.
- #inspect ⇒ Object
Constructor Details
#initialize(element, payload = nil) ⇒ Element
Returns a new instance of Element.
7 8 9 10 |
# File 'lib/pacer/blueprints/payload_elements.rb', line 7 def initialize(element, payload = nil) @element = element self.payload = payload end |
Instance Attribute Details
#element ⇒ Object (readonly)
Returns the value of attribute element.
16 17 18 |
# File 'lib/pacer/blueprints/payload_elements.rb', line 16 def element @element end |
#payload ⇒ Object
Returns the value of attribute payload.
17 18 19 |
# File 'lib/pacer/blueprints/payload_elements.rb', line 17 def payload @payload end |
Instance Method Details
#inspect ⇒ Object
12 13 14 |
# File 'lib/pacer/blueprints/payload_elements.rb', line 12 def inspect "#<Payload #{ element.inspect } -- #{ payload.inspect }>" end |