Class: LogsTF::Log
- Inherits:
-
Object
- Object
- LogsTF::Log
- Defined in:
- lib/logs_tf/log.rb
Instance Attribute Summary collapse
-
#api_key ⇒ Object
Returns the value of attribute api_key.
-
#file ⇒ Object
Returns the value of attribute file.
-
#map_name ⇒ Object
Returns the value of attribute map_name.
-
#title ⇒ Object
Returns the value of attribute title.
Instance Method Summary collapse
- #filename ⇒ Object
-
#initialize(file, map_name = "", title = "", api_key = LogsTF::API_KEY) ⇒ Log
constructor
A new instance of Log.
Constructor Details
#initialize(file, map_name = "", title = "", api_key = LogsTF::API_KEY) ⇒ Log
Returns a new instance of Log.
7 8 9 10 11 12 |
# File 'lib/logs_tf/log.rb', line 7 def initialize(file, map_name = "", title = "", api_key = LogsTF::API_KEY) @file = file @map_name = map_name @title = title @api_key = api_key end |
Instance Attribute Details
#api_key ⇒ Object
Returns the value of attribute api_key.
5 6 7 |
# File 'lib/logs_tf/log.rb', line 5 def api_key @api_key end |
#file ⇒ Object
Returns the value of attribute file.
5 6 7 |
# File 'lib/logs_tf/log.rb', line 5 def file @file end |
#map_name ⇒ Object
Returns the value of attribute map_name.
5 6 7 |
# File 'lib/logs_tf/log.rb', line 5 def map_name @map_name end |
#title ⇒ Object
Returns the value of attribute title.
5 6 7 |
# File 'lib/logs_tf/log.rb', line 5 def title @title end |
Instance Method Details
#filename ⇒ Object
14 15 16 |
# File 'lib/logs_tf/log.rb', line 14 def filename File.basename(file) end |