Class: Vidsy::Cloudkit::AppConfig
- Inherits:
-
Object
- Object
- Vidsy::Cloudkit::AppConfig
- Defined in:
- lib/vidsy/cloudkit/app_config.rb
Instance Method Summary collapse
- #all ⇒ Object
-
#initialize ⇒ AppConfig
constructor
A new instance of AppConfig.
- #node(s) ⇒ Object
Constructor Details
#initialize ⇒ AppConfig
Returns a new instance of AppConfig.
8 9 10 |
# File 'lib/vidsy/cloudkit/app_config.rb', line 8 def initialize @json = parse end |
Instance Method Details
#all ⇒ Object
12 13 14 |
# File 'lib/vidsy/cloudkit/app_config.rb', line 12 def all json end |
#node(s) ⇒ Object
16 17 18 |
# File 'lib/vidsy/cloudkit/app_config.rb', line 16 def node(s) OpenStruct.new json[s] end |