Module: ProductWars

Extended by:
ProductWars
Included in:
ProductWars
Defined in:
lib/productwars.rb,
lib/productwars/war.rb,
lib/productwars/stats.rb,
lib/productwars/client.rb,
lib/productwars/errors.rb,
lib/productwars/product.rb,
lib/productwars/response.rb

Defined Under Namespace

Modules: Errors Classes: Client, Product, Response, Stats, War

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#domainObject

Returns the value of attribute domain.



6
7
8
# File 'lib/productwars.rb', line 6

def domain
  @domain
end

Class Method Details

.method_missing(method, *args, &block) ⇒ Object



10
11
12
13
# File 'lib/productwars.rb', line 10

def self.method_missing(method, *args, &block)
  return super unless Client.respond_to?(method)
  Client.dispatch(method, *args, &block)
end

.respond_to?(method) ⇒ Boolean

Returns:



15
16
17
# File 'lib/productwars.rb', line 15

def self.respond_to?(method)
  return Client.respond_to?(method) || super
end