Class: HonStats::Classes::Ignorelist::Ignorelist
- Inherits:
-
Object
- Object
- HonStats::Classes::Ignorelist::Ignorelist
- Defined in:
- lib/honstats/ignore.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
(also: #to_i)
readonly
Returns the value of attribute id.
-
#ignores ⇒ Object
readonly
Returns the value of attribute ignores.
Instance Method Summary collapse
-
#initialize(data) ⇒ Ignorelist
constructor
A new instance of Ignorelist.
Constructor Details
#initialize(data) ⇒ Ignorelist
Returns a new instance of Ignorelist.
11 12 13 14 15 16 17 18 19 20 |
# File 'lib/honstats/ignore.rb', line 11 def initialize(data) if data[0] ignores = [] data.each do |ignore| ignores << Ignore.new(ignore) end @ignores = ignores @id = HonStats::API.get_data("account_id", data[0]).to_i end end |
Instance Attribute Details
#id ⇒ Object (readonly) Also known as: to_i
Returns the value of attribute id.
8 9 10 |
# File 'lib/honstats/ignore.rb', line 8 def id @id end |
#ignores ⇒ Object (readonly)
Returns the value of attribute ignores.
8 9 10 |
# File 'lib/honstats/ignore.rb', line 8 def ignores @ignores end |