Class: Reve::Classes::StarbaseCombatSettings

Inherits:
Object
  • Object
show all
Defined in:
lib/reve/classes.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(elem) ⇒ StarbaseCombatSettings

:nodoc:



1359
1360
1361
1362
1363
1364
# File 'lib/reve/classes.rb', line 1359

def initialize(elem) #:nodoc:
  @on_standings_drop  = elem['onStandingDrop'].attr('standing').to_i
  @on_status_drop     = (elem['onStatusDrop'].attr('enabled') == '1' ? elem['onStatusDrop'].attr('standing').to_i : false)
  @on_aggression      = elem['onAggression'].attr('enabled') == '1'
  @on_corporation_war = elem['onCorporationWar'].attr('enabled') == '1'
end

Instance Attribute Details

#on_aggressionObject (readonly)

Returns the value of attribute on_aggression.



1358
1359
1360
# File 'lib/reve/classes.rb', line 1358

def on_aggression
  @on_aggression
end

#on_corporation_warObject (readonly)

Returns the value of attribute on_corporation_war.



1358
1359
1360
# File 'lib/reve/classes.rb', line 1358

def on_corporation_war
  @on_corporation_war
end

#on_standings_dropObject (readonly)

Returns the value of attribute on_standings_drop.



1358
1359
1360
# File 'lib/reve/classes.rb', line 1358

def on_standings_drop
  @on_standings_drop
end

#on_status_dropObject (readonly)

Returns the value of attribute on_status_drop.



1358
1359
1360
# File 'lib/reve/classes.rb', line 1358

def on_status_drop
  @on_status_drop
end