Class: Ruush::Parser::AuthObject
- Inherits:
-
Struct
- Object
- Struct
- Ruush::Parser::AuthObject
- Defined in:
- lib/ruush/parser.rb
Overview
order is important here, expiry is always blank? (means never)
Instance Attribute Summary collapse
-
#expiry ⇒ Object
Returns the value of attribute expiry.
-
#key ⇒ Object
Returns the value of attribute key.
-
#premium_string ⇒ Object
Returns the value of attribute premium_string.
-
#usage_string ⇒ Object
Returns the value of attribute usage_string.
Instance Method Summary collapse
Instance Attribute Details
#expiry ⇒ Object
Returns the value of attribute expiry
3 4 5 |
# File 'lib/ruush/parser.rb', line 3 def expiry @expiry end |
#key ⇒ Object
Returns the value of attribute key
3 4 5 |
# File 'lib/ruush/parser.rb', line 3 def key @key end |
#premium_string ⇒ Object
Returns the value of attribute premium_string
3 4 5 |
# File 'lib/ruush/parser.rb', line 3 def premium_string @premium_string end |
#usage_string ⇒ Object
Returns the value of attribute usage_string
3 4 5 |
# File 'lib/ruush/parser.rb', line 3 def usage_string @usage_string end |
Instance Method Details
#is_premium ⇒ Object
4 5 6 |
# File 'lib/ruush/parser.rb', line 4 def is_premium premium_string != "0" end |
#usage_bytes ⇒ Object
8 9 10 |
# File 'lib/ruush/parser.rb', line 8 def usage_bytes usage_string.to_i end |