Class: Warframe::Models::VallisCycle

Inherits:
Base show all
Includes:
Attributes::Activation, Attributes::Expiry, Attributes::ID
Defined in:
lib/warframe/models/vallis_cycle.rb

Overview

Model for VallisCycle data. /:platform/vallisCycle

Instance Attribute Summary collapse

Attributes included from Attributes::Activation

#activation

Attributes included from Attributes::Expiry

#expiry

Attributes included from Attributes::ID

#id

Method Summary

Methods inherited from ObjectifiedHash

#[], from_array, #initialize, #inspect, #size, #to_hash, #to_s

Constructor Details

This class inherits a constructor from Warframe::Models::ObjectifiedHash

Instance Attribute Details

#is_warmBoolean (readonly) Also known as: is_warm?

Returns whether or not it currently is warm.

Returns:

  • (Boolean)

    whether or not it currently is warm.



19
20
21
# File 'lib/warframe/models/vallis_cycle.rb', line 19

def is_warm
  @is_warm
end

#is_warm?=(value) ⇒ Boolean

Returns whether or not it currently is warm.

Returns:

  • (Boolean)

    whether or not it currently is warm.



19
# File 'lib/warframe/models/vallis_cycle.rb', line 19

attr_reader :is_warm

#short_stringString

Returns the time remaining until state change. Ex: ‘5m to Warm`.

Returns:

  • (String)

    the time remaining until state change. Ex: ‘5m to Warm`.



28
29
30
# File 'lib/warframe/models/vallis_cycle.rb', line 28

def short_string
  @short_string
end

#stateString

Returns the current world state (Cold or Warm).

Returns:

  • (String)

    the current world state (Cold or Warm)



24
25
26
# File 'lib/warframe/models/vallis_cycle.rb', line 24

def state
  @state
end

#time_leftString

Returns time left until next cycle.

Returns:

  • (String)

    time left until next cycle.



15
16
17
# File 'lib/warframe/models/vallis_cycle.rb', line 15

def time_left
  @time_left
end