Class: FSR::Cmd::DomainExists

Inherits:
Command
  • Object
show all
Defined in:
lib/fsr/cmd/domain_exists.rb

Constant Summary

Constants inherited from Command

DEFAULT_OPTIONS

Class Method Summary (collapse)

Instance Method Summary (collapse)

Methods inherited from Command

#default_options

Constructor Details

- (DomainExists) initialize(domain)

A new instance of DomainExists



9
10
11
# File 'lib/fsr/cmd/domain_exists.rb', line 9

def initialize(domain)
  @domain = domain
end

Class Method Details

+ (Object) cmd_name



5
6
7
# File 'lib/fsr/cmd/domain_exists.rb', line 5

def self.cmd_name
  "domain_exists"
end

Instance Method Details

- (Object) arguments



13
14
15
# File 'lib/fsr/cmd/domain_exists.rb', line 13

def arguments
  [@domain]
end

- (Object) response=(response)



17
18
19
# File 'lib/fsr/cmd/domain_exists.rb', line 17

def response=(response)
  @response = response.content == "true"
end