Sha256: 50079c1de45cbb3954966f385dc265bc5c0d160c616fa7550ef8b7b0838084e1
Contents?: true
Size: 581 Bytes
Versions: 3
Compression:
Stored size: 581 Bytes
Contents
class Ey::Core::Client::Feature < Ey::Core::Model extend Ey::Core::Associations identity :id attribute :name attribute :privacy attribute :description has_one :account def enable!(account) params = { "account" => account.id, "feature" => { "id" => self.id, } } self.connection.enable_feature(params) end def disable!(account) params = { "account" => account.id, "feature" => { "id" => self.id } } self.connection.disable_feature(params) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ey-core-3.6.6 | lib/ey-core/models/feature.rb |
ey-core-3.4.5 | lib/ey-core/models/feature.rb |
ey-core-3.6.5 | lib/ey-core/models/feature.rb |