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.
-
#collapsible ⇒ Object
Returns the value of attribute collapsible.
-
#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.
-
#plan ⇒ Object
Returns the value of attribute plan.
-
#requirements ⇒ Object
Returns the value of attribute requirements.
-
#settings ⇒ Object
Returns the value of attribute settings.
-
#stripe_subscription_id ⇒ Object
Returns the value of attribute stripe_subscription_id.
-
#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.
8 9 10 11 12 |
# File 'lib/zendesk_apps_support/installation.rb', line 8 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.
5 6 7 |
# File 'lib/zendesk_apps_support/installation.rb', line 5 def app_id @app_id end |
#app_name ⇒ Object
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 |
#collapsible ⇒ Object
Returns the value of attribute collapsible.
5 6 7 |
# File 'lib/zendesk_apps_support/installation.rb', line 5 def collapsible @collapsible end |
#created_at ⇒ Object
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 |
#enabled ⇒ Object
Returns the value of attribute enabled.
5 6 7 |
# File 'lib/zendesk_apps_support/installation.rb', line 5 def enabled @enabled end |
#id ⇒ Object
Returns the value of attribute id.
5 6 7 |
# File 'lib/zendesk_apps_support/installation.rb', line 5 def id @id end |
#plan ⇒ Object
Returns the value of attribute plan.
6 7 8 |
# File 'lib/zendesk_apps_support/installation.rb', line 6 def plan @plan end |
#requirements ⇒ Object
Returns the value of attribute requirements.
5 6 7 |
# File 'lib/zendesk_apps_support/installation.rb', line 5 def requirements @requirements end |
#settings ⇒ Object
Returns the value of attribute settings.
5 6 7 |
# File 'lib/zendesk_apps_support/installation.rb', line 5 def settings @settings end |
#stripe_subscription_id ⇒ Object
Returns the value of attribute stripe_subscription_id.
6 7 8 |
# File 'lib/zendesk_apps_support/installation.rb', line 6 def stripe_subscription_id @stripe_subscription_id end |
#updated_at ⇒ Object
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_json ⇒ Object
14 15 16 17 18 19 20 |
# File 'lib/zendesk_apps_support/installation.rb', line 14 def to_json hash = {} instance_variables.each do |var| hash[var.to_s.sub('@', '')] = instance_variable_get var end hash.to_json end |