Class: OvercastAPI::Infraction
- Inherits:
-
Object
- Object
- OvercastAPI::Infraction
- Defined in:
- lib/overcast_api.rb
Instance Attribute Summary collapse
-
#date ⇒ Object
readonly
Returns the value of attribute date.
-
#expires ⇒ Object
readonly
Returns the value of attribute expires.
-
#punished ⇒ Object
readonly
Returns the value of attribute punished.
-
#punisher ⇒ Object
readonly
Returns the value of attribute punisher.
-
#reason ⇒ Object
readonly
Returns the value of attribute reason.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(punisher, punished, reason, type, expires, date) ⇒ Infraction
constructor
A new instance of Infraction.
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
#date ⇒ Object (readonly)
Returns the value of attribute date.
187 188 189 |
# File 'lib/overcast_api.rb', line 187 def date @date end |
#expires ⇒ Object (readonly)
Returns the value of attribute expires.
186 187 188 |
# File 'lib/overcast_api.rb', line 186 def expires @expires end |
#punished ⇒ Object (readonly)
Returns the value of attribute punished.
183 184 185 |
# File 'lib/overcast_api.rb', line 183 def punished @punished end |
#punisher ⇒ Object (readonly)
Returns the value of attribute punisher.
182 183 184 |
# File 'lib/overcast_api.rb', line 182 def punisher @punisher end |
#reason ⇒ Object (readonly)
Returns the value of attribute reason.
184 185 186 |
# File 'lib/overcast_api.rb', line 184 def reason @reason end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
185 186 187 |
# File 'lib/overcast_api.rb', line 185 def type @type end |