Class: Ninja::ResponseFile
- Inherits:
-
Object
- Object
- Ninja::ResponseFile
- Defined in:
- lib/ninja/response_file.rb
Instance Attribute Summary collapse
-
#contents ⇒ Object
readonly
Returns the value of attribute contents.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, contents) ⇒ ResponseFile
constructor
A new instance of ResponseFile.
Constructor Details
#initialize(name, contents) ⇒ ResponseFile
Returns a new instance of ResponseFile.
6 7 8 9 10 11 |
# File 'lib/ninja/response_file.rb', line 6 def initialize(name, contents) raise "Name not specified." unless name @name = name @contents = contents end |
Instance Attribute Details
#contents ⇒ Object (readonly)
Returns the value of attribute contents.
3 4 5 |
# File 'lib/ninja/response_file.rb', line 3 def contents @contents end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/ninja/response_file.rb', line 3 def name @name end |