Class: ZendeskAppsSupport::Installation

Inherits:
Object
  • Object
show all
Defined in:
lib/zendesk_apps_support/installation.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ Installation

Returns a new instance of Installation.



7
8
9
10
11
# File 'lib/zendesk_apps_support/installation.rb', line 7

def initialize(options)
  options.each do |k, v|
    public_send("#{k}=", v)
  end
end

Instance Attribute Details

#app_idObject

Returns the value of attribute app_id.



5
6
7
# File 'lib/zendesk_apps_support/installation.rb', line 5

def app_id
  @app_id
end

#app_nameObject

Returns the value of attribute app_name.



5
6
7
# File 'lib/zendesk_apps_support/installation.rb', line 5

def app_name
  @app_name
end

#collapsibleObject

Returns the value of attribute collapsible.



5
6
7
# File 'lib/zendesk_apps_support/installation.rb', line 5

def collapsible
  @collapsible
end

#created_atObject

Returns the value of attribute created_at.



5
6
7
# File 'lib/zendesk_apps_support/installation.rb', line 5

def created_at
  @created_at
end

#enabledObject

Returns the value of attribute enabled.



5
6
7
# File 'lib/zendesk_apps_support/installation.rb', line 5

def enabled
  @enabled
end

#idObject

Returns the value of attribute id.



5
6
7
# File 'lib/zendesk_apps_support/installation.rb', line 5

def id
  @id
end

#requirementsObject

Returns the value of attribute requirements.



5
6
7
# File 'lib/zendesk_apps_support/installation.rb', line 5

def requirements
  @requirements
end

#settingsObject

Returns the value of attribute settings.



5
6
7
# File 'lib/zendesk_apps_support/installation.rb', line 5

def settings
  @settings
end

#updated_atObject

Returns the value of attribute updated_at.



5
6
7
# File 'lib/zendesk_apps_support/installation.rb', line 5

def updated_at
  @updated_at
end

Instance Method Details

#to_jsonObject



13
14
15
16
17
18
19
# File 'lib/zendesk_apps_support/installation.rb', line 13

def to_json
  hash = {}
  instance_variables.each do |var|
    hash[var.to_s.sub('@', '')] = instance_variable_get var
  end
  hash.to_json
end