Class: Ninja::ResponseFile

Inherits:
Object
  • Object
show all
Defined in:
lib/ninja/response_file.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#contentsObject (readonly)

Returns the value of attribute contents.



3
4
5
# File 'lib/ninja/response_file.rb', line 3

def contents
  @contents
end

#nameObject (readonly)

Returns the value of attribute name.



3
4
5
# File 'lib/ninja/response_file.rb', line 3

def name
  @name
end