Class: ZendeskAppsSupport::Installation
- Inherits:
-
Object
- Object
- ZendeskAppsSupport::Installation
- Defined in:
- lib/zendesk_apps_support/installation.rb
Instance Attribute Summary collapse
-
#app_id ⇒ Object
Returns the value of attribute app_id.
-
#app_name ⇒ Object
Returns the value of attribute app_name.
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#enabled ⇒ Object
Returns the value of attribute enabled.
-
#id ⇒ Object
Returns the value of attribute id.
-
#requirements ⇒ Object
Returns the value of attribute requirements.
-
#settings ⇒ Object
Returns the value of attribute settings.
-
#updated_at ⇒ Object
Returns the value of attribute updated_at.
Instance Method Summary collapse
-
#initialize(options) ⇒ Installation
constructor
A new instance of Installation.
- #to_json ⇒ Object
Constructor Details
#initialize(options) ⇒ Installation
Returns a new instance of Installation.
6 7 8 9 10 |
# File 'lib/zendesk_apps_support/installation.rb', line 6 def initialize() .each do |k, v| public_send("#{k}=", v) end end |
Instance Attribute Details
#app_id ⇒ Object
Returns the value of attribute app_id.
4 5 6 |
# File 'lib/zendesk_apps_support/installation.rb', line 4 def app_id @app_id end |
#app_name ⇒ Object
Returns the value of attribute app_name.
4 5 6 |
# File 'lib/zendesk_apps_support/installation.rb', line 4 def app_name @app_name end |
#created_at ⇒ Object
Returns the value of attribute created_at.
4 5 6 |
# File 'lib/zendesk_apps_support/installation.rb', line 4 def created_at @created_at end |
#enabled ⇒ Object
Returns the value of attribute enabled.
4 5 6 |
# File 'lib/zendesk_apps_support/installation.rb', line 4 def enabled @enabled end |
#id ⇒ Object
Returns the value of attribute id.
4 5 6 |
# File 'lib/zendesk_apps_support/installation.rb', line 4 def id @id end |
#requirements ⇒ Object
Returns the value of attribute requirements.
4 5 6 |
# File 'lib/zendesk_apps_support/installation.rb', line 4 def requirements @requirements end |
#settings ⇒ Object
Returns the value of attribute settings.
4 5 6 |
# File 'lib/zendesk_apps_support/installation.rb', line 4 def settings @settings end |
#updated_at ⇒ Object
Returns the value of attribute updated_at.
4 5 6 |
# File 'lib/zendesk_apps_support/installation.rb', line 4 def updated_at @updated_at end |
Instance Method Details
#to_json ⇒ Object
12 13 14 15 16 17 18 |
# File 'lib/zendesk_apps_support/installation.rb', line 12 def to_json hash = {} instance_variables.each do |var| hash[var.to_s.sub('@', '')] = instance_variable_get var end hash.to_json end |