Class: Reve::Classes::StarbaseGeneralSettings
- Defined in:
- lib/reve/classes.rb
Instance Attribute Summary collapse
-
#allow_alliance_members ⇒ Object
readonly
Returns the value of attribute allow_alliance_members.
-
#allow_corporation_members ⇒ Object
readonly
Returns the value of attribute allow_corporation_members.
-
#claim_sovereignty ⇒ Object
readonly
Returns the value of attribute claim_sovereignty.
-
#deploy_flags ⇒ Object
readonly
Returns the value of attribute deploy_flags.
-
#usage_flags ⇒ Object
readonly
Returns the value of attribute usage_flags.
Instance Method Summary collapse
-
#initialize(elem) ⇒ StarbaseGeneralSettings
constructor
:nodoc:.
Constructor Details
#initialize(elem) ⇒ StarbaseGeneralSettings
:nodoc:
1395 1396 1397 1398 1399 1400 1401 |
# File 'lib/reve/classes.rb', line 1395 def initialize(elem) #:nodoc: @usage_flags = elem['usageFlags'].to_i @deploy_flags = elem['deployFlags'].to_i @allow_corporation_members = elem['allowCorporationMembers'] == '1' @allow_alliance_members = elem['allowAllianceMembers'] == '1' @claim_sovereignty = elem['claimSovereignty'] == '1' end |
Instance Attribute Details
#allow_alliance_members ⇒ Object (readonly)
Returns the value of attribute allow_alliance_members.
1393 1394 1395 |
# File 'lib/reve/classes.rb', line 1393 def allow_alliance_members @allow_alliance_members end |
#allow_corporation_members ⇒ Object (readonly)
Returns the value of attribute allow_corporation_members.
1393 1394 1395 |
# File 'lib/reve/classes.rb', line 1393 def allow_corporation_members @allow_corporation_members end |
#claim_sovereignty ⇒ Object (readonly)
Returns the value of attribute claim_sovereignty.
1393 1394 1395 |
# File 'lib/reve/classes.rb', line 1393 def claim_sovereignty @claim_sovereignty end |
#deploy_flags ⇒ Object (readonly)
Returns the value of attribute deploy_flags.
1393 1394 1395 |
# File 'lib/reve/classes.rb', line 1393 def deploy_flags @deploy_flags end |
#usage_flags ⇒ Object (readonly)
Returns the value of attribute usage_flags.
1393 1394 1395 |
# File 'lib/reve/classes.rb', line 1393 def usage_flags @usage_flags end |