Class: Stormpath::Rails::Config::ReadFile

Inherits:
Object
  • Object
show all
Defined in:
lib/stormpath/rails/config/read_file.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(file_path) ⇒ ReadFile

Returns a new instance of ReadFile.



7
8
9
# File 'lib/stormpath/rails/config/read_file.rb', line 7

def initialize(file_path)
  @file_path = file_path
end

Instance Attribute Details

#file_pathObject (readonly)

Returns the value of attribute file_path.



5
6
7
# File 'lib/stormpath/rails/config/read_file.rb', line 5

def file_path
  @file_path
end

Instance Method Details

#hashObject



11
12
13
# File 'lib/stormpath/rails/config/read_file.rb', line 11

def hash
  @hash ||= snakecased_hash
end