Class: Sheetsy::JSONFile
- Inherits:
-
Object
- Object
- Sheetsy::JSONFile
- Defined in:
- lib/sheetsy/json_file.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
-
#file_path ⇒ Object
readonly
Returns the value of attribute file_path.
Instance Method Summary collapse
-
#initialize(file_path) ⇒ JSONFile
constructor
A new instance of JSONFile.
- #inspect ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize(file_path) ⇒ JSONFile
Returns a new instance of JSONFile.
7 8 9 |
# File 'lib/sheetsy/json_file.rb', line 7 def initialize(file_path) @file_path = file_path end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
5 6 7 |
# File 'lib/sheetsy/json_file.rb', line 5 def data @data end |
#file_path ⇒ Object (readonly)
Returns the value of attribute file_path.
5 6 7 |
# File 'lib/sheetsy/json_file.rb', line 5 def file_path @file_path end |
Instance Method Details
#inspect ⇒ Object
15 16 17 |
# File 'lib/sheetsy/json_file.rb', line 15 def inspect to_s end |
#to_s ⇒ Object
19 20 21 |
# File 'lib/sheetsy/json_file.rb', line 19 def to_s "#<#{self.class}:#{file_path}>" end |