Class: OvercastAPI::Infraction

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(punisher, punished, reason, type, expires, date) ⇒ Infraction

Returns a new instance of Infraction.



188
189
190
191
192
193
194
195
# File 'lib/overcast_api.rb', line 188

def initialize(punisher, punished, reason, type, expires, date)
  @punisher = punisher
  @punished = punished
  @reason = reason
  @type = type
  @expires = expires
  @date = date
end

Instance Attribute Details

#dateObject (readonly)

Returns the value of attribute date.



187
188
189
# File 'lib/overcast_api.rb', line 187

def date
  @date
end

#expiresObject (readonly)

Returns the value of attribute expires.



186
187
188
# File 'lib/overcast_api.rb', line 186

def expires
  @expires
end

#punishedObject (readonly)

Returns the value of attribute punished.



183
184
185
# File 'lib/overcast_api.rb', line 183

def punished
  @punished
end

#punisherObject (readonly)

Returns the value of attribute punisher.



182
183
184
# File 'lib/overcast_api.rb', line 182

def punisher
  @punisher
end

#reasonObject (readonly)

Returns the value of attribute reason.



184
185
186
# File 'lib/overcast_api.rb', line 184

def reason
  @reason
end

#typeObject (readonly)

Returns the value of attribute type.



185
186
187
# File 'lib/overcast_api.rb', line 185

def type
  @type
end