class SparkApi::Models::Portal
Public Class Methods
my(arguments = {})
click to toggle source
# File lib/spark_api/models/portal.rb, line 10 def self.my(arguments = {}) portal = collect(connection.get("/portal", arguments)).first portal = Portal.new if portal.nil? portal end
Public Instance Methods
disable()
click to toggle source
# File lib/spark_api/models/portal.rb, line 26 def disable attribute_will_change! "Enabled" @attributes['Enabled'] = false save end
enable()
click to toggle source
# File lib/spark_api/models/portal.rb, line 20 def enable attribute_will_change! "Enabled" @attributes['Enabled'] = true save end
enabled?()
click to toggle source
# File lib/spark_api/models/portal.rb, line 16 def enabled? @attributes['Enabled'] == true end
post_data()
click to toggle source
# File lib/spark_api/models/portal.rb, line 32 def post_data; attributes end