Class: WeebSh::ReputationSettings

Inherits:
Object
  • Object
show all
Includes:
IDObject
Defined in:
lib/weeb/data.rb

Overview

Represents a reputation settings object for shimakaze

Instance Attribute Summary collapse

Attributes included from IDObject

#id

Instance Method Summary collapse

Methods included from IDObject

#==

Instance Attribute Details

#accountString?


305
306
307
# File 'lib/weeb/data.rb', line 305

def 
  @account
end

#max_reputationInteger Also known as: max_rep


293
294
295
# File 'lib/weeb/data.rb', line 293

def max_reputation
  @max_reputation
end

#max_reputation_per_dayInteger Also known as: max_rep_per_day


297
298
299
# File 'lib/weeb/data.rb', line 297

def max_reputation_per_day
  @max_reputation_per_day
end

#reputation_cooldownInteger Also known as: rep_cooldown


301
302
303
# File 'lib/weeb/data.rb', line 301

def reputation_cooldown
  @reputation_cooldown
end

#reputation_per_dayInteger Also known as: rep_per_day


289
290
291
# File 'lib/weeb/data.rb', line 289

def reputation_per_day
  @reputation_per_day
end

Instance Method Details

#saveReputationSettings

Save the settings on this object


319
320
321
322
323
324
325
326
327
# File 'lib/weeb/data.rb', line 319

def save
  WeebSh::API::Shimakaze.set_settings(@interface, {
    reputationPerDay: @reputation_per_day,
    maximumReputation: @max_reputation,
    maximumReputationReceivedDay: @max_reputation_per_day,
    reputationCooldown: @reputation_cooldown
  })
  self
end