Class: NodeInfo::Document::Usage::Users

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(total = nil, active_halfyear = nil, active_month = nil) ⇒ Users

Returns a new instance of Users.


58
59
60
# File 'lib/node_info.rb', line 58

def initialize(total=nil, active_halfyear=nil, active_month=nil)
  super(total, active_halfyear, active_month)
end

Instance Attribute Details

#active_halfyearObject

Returns the value of attribute active_halfyear

Returns:

  • (Object)

    the current value of active_halfyear


57
58
59
# File 'lib/node_info.rb', line 57

def active_halfyear
  @active_halfyear
end

#active_monthObject

Returns the value of attribute active_month

Returns:

  • (Object)

    the current value of active_month


57
58
59
# File 'lib/node_info.rb', line 57

def active_month
  @active_month
end

#totalObject

Returns the value of attribute total

Returns:

  • (Object)

    the current value of total


57
58
59
# File 'lib/node_info.rb', line 57

def total
  @total
end

Instance Method Details

#version_10_hashObject


62
63
64
65
66
67
68
# File 'lib/node_info.rb', line 62

def version_10_hash
  {
    "total"          => total,
    "activeHalfyear" => active_halfyear,
    "activeMonth"    => active_month
  }
end