Class: Earl::Msg
- Inherits:
-
Object
- Object
- Earl::Msg
- Defined in:
- lib/earl_post.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
Returns the value of attribute data.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(url = nil, data = nil) ⇒ Msg
constructor
A new instance of Msg.
- #submit ⇒ Object
Constructor Details
#initialize(url = nil, data = nil) ⇒ Msg
Returns a new instance of Msg.
24 25 26 27 28 29 |
# File 'lib/earl_post.rb', line 24 def initialize(url = nil,data = nil) @data = data @url = url @submitted = false @response = nil end |
Instance Attribute Details
#data ⇒ Object
Returns the value of attribute data.
22 23 24 |
# File 'lib/earl_post.rb', line 22 def data @data end |
#url ⇒ Object
Returns the value of attribute url.
22 23 24 |
# File 'lib/earl_post.rb', line 22 def url @url end |