Class: Ruush::Parser::AuthObject

Inherits:
Struct
  • Object
show all
Defined in:
lib/ruush/parser.rb

Overview

order is important here, expiry is always blank? (means never)

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#expiryObject

Returns the value of attribute expiry

Returns:

  • (Object)

    the current value of expiry



3
4
5
# File 'lib/ruush/parser.rb', line 3

def expiry
  @expiry
end

#keyObject

Returns the value of attribute key

Returns:

  • (Object)

    the current value of key



3
4
5
# File 'lib/ruush/parser.rb', line 3

def key
  @key
end

#premium_stringObject

Returns the value of attribute premium_string

Returns:

  • (Object)

    the current value of premium_string



3
4
5
# File 'lib/ruush/parser.rb', line 3

def premium_string
  @premium_string
end

#usage_stringObject

Returns the value of attribute usage_string

Returns:

  • (Object)

    the current value of usage_string



3
4
5
# File 'lib/ruush/parser.rb', line 3

def usage_string
  @usage_string
end

Instance Method Details

#is_premiumObject



4
5
6
# File 'lib/ruush/parser.rb', line 4

def is_premium
  premium_string != "0"
end

#usage_bytesObject



8
9
10
# File 'lib/ruush/parser.rb', line 8

def usage_bytes
  usage_string.to_i
end