Class: Sheetsy::JSONFile

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#dataObject (readonly)

Returns the value of attribute data.



5
6
7
# File 'lib/sheetsy/json_file.rb', line 5

def data
  @data
end

#file_pathObject (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

#inspectObject



15
16
17
# File 'lib/sheetsy/json_file.rb', line 15

def inspect
  to_s
end

#to_sObject



19
20
21
# File 'lib/sheetsy/json_file.rb', line 19

def to_s
  "#<#{self.class}:#{file_path}>"
end