Class: SambaApi::Init
- Inherits:
-
Object
- Object
- SambaApi::Init
- Includes:
- HTTParty, Categories, Medias, Projects
- Defined in:
- lib/samba_api/init.rb
Overview
class init access
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Init
constructor
A new instance of Init.
Methods included from Medias
#active_media, #all_medias, #delete_media, #get_media, #upload_media
Methods included from Categories
#all_categories, #category, #create_category, #delete_category, #update_category
Methods included from Projects
#all_projects, #create_project, #delete_project, #project
Constructor Details
#initialize(options = {}) ⇒ Init
Returns a new instance of Init.
15 16 17 18 19 20 |
# File 'lib/samba_api/init.rb', line 15 def initialize(={}) .each do |key, value| instance_variable_set("@#{key}", value) yield(self) if block_given? end end |