Class: Ey::Core::Client::Feature

Inherits:
Model
  • Object
show all
Extended by:
Associations
Defined in:
lib/ey-core/models/feature.rb

Instance Method Summary collapse

Methods included from Associations

assoc_accessor, assoc_coverage, assoc_reader, assoc_writer, associations, collection_reader

Methods inherited from Model

#destroy, range_parser, #save, #to_s, #update!, #url

Instance Method Details

#disable!(account) ⇒ Object



23
24
25
26
27
28
29
30
31
32
# File 'lib/ey-core/models/feature.rb', line 23

def disable!()
  params = {
    "account" => .id,
    "feature" => {
      "id" => self.id
    }
  }

  self.connection.disable_feature(params)
end

#enable!(account) ⇒ Object



12
13
14
15
16
17
18
19
20
21
# File 'lib/ey-core/models/feature.rb', line 12

def enable!()
  params = {
    "account" => .id,
    "feature" => {
      "id" => self.id,
    }
  }

  self.connection.enable_feature(params)
end