Class: SambaApi::Init

Inherits:
Object
  • Object
show all
Includes:
HTTParty, Categories, Medias, Projects
Defined in:
lib/samba_api/init.rb

Overview

class init access

Instance Method Summary collapse

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(options={})
  options.each do |key, value|
    instance_variable_set("@#{key}", value)
    yield(self) if block_given?
  end
end