Class: HonStats::Classes::Ignorelist::Ignore
- Inherits:
-
Object
- Object
- HonStats::Classes::Ignorelist::Ignore
- Defined in:
- lib/honstats/ignore.rb
Instance Attribute Summary collapse
-
#account_id ⇒ Object
readonly
Returns the value of attribute account_id.
-
#ignored_id ⇒ Object
readonly
Returns the value of attribute ignored_id.
-
#nickname ⇒ Object
readonly
Returns the value of attribute nickname.
Instance Method Summary collapse
-
#initialize(data) ⇒ Ignore
constructor
A new instance of Ignore.
Constructor Details
#initialize(data) ⇒ Ignore
Returns a new instance of Ignore.
27 28 29 30 31 32 33 |
# File 'lib/honstats/ignore.rb', line 27 def initialize(data) @account_id = HonStats::API.get_data("account_id", data).to_i @ignored_id = HonStats::API.get_data("ignored_id", data).to_i @nickname = HonStats::API.get_data("nickname", data).to_s # @reason = HonStats::API.get_data("reason", data).to_s # @ignored_at = Time.parse(HonStats::API.get_data("ignore_date", data).to_s) end |
Instance Attribute Details
#account_id ⇒ Object (readonly)
Returns the value of attribute account_id.
25 26 27 |
# File 'lib/honstats/ignore.rb', line 25 def account_id @account_id end |
#ignored_id ⇒ Object (readonly)
Returns the value of attribute ignored_id.
25 26 27 |
# File 'lib/honstats/ignore.rb', line 25 def ignored_id @ignored_id end |
#nickname ⇒ Object (readonly)
Returns the value of attribute nickname.
25 26 27 |
# File 'lib/honstats/ignore.rb', line 25 def nickname @nickname end |