Class: ChargeBee::MeteredFeature

Inherits:
Model
  • Object
show all
Defined in:
lib/chargebee/models/metered_feature.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Methods inherited from Model

construct, #init_dependant, #init_dependant_list, #initialize, #inspect, #load, #method_missing, #replace_white_space_with_underscore, #respond_to_missing?, #to_s, uri_path

Constructor Details

This class inherits a constructor from ChargeBee::Model

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class ChargeBee::Model

Instance Attribute Details

#column_definitionsObject

Returns the value of attribute column_definitions.



4
5
6
# File 'lib/chargebee/models/metered_feature.rb', line 4

def column_definitions
  @column_definitions
end

#descriptionObject

Returns the value of attribute description.



4
5
6
# File 'lib/chargebee/models/metered_feature.rb', line 4

def description
  @description
end

#featuresObject

Returns the value of attribute features.



4
5
6
# File 'lib/chargebee/models/metered_feature.rb', line 4

def features
  @features
end

#idObject

Returns the value of attribute id.



4
5
6
# File 'lib/chargebee/models/metered_feature.rb', line 4

def id
  @id
end

#nameObject

Returns the value of attribute name.



4
5
6
# File 'lib/chargebee/models/metered_feature.rb', line 4

def name
  @name
end

#queryObject

Returns the value of attribute query.



4
5
6
# File 'lib/chargebee/models/metered_feature.rb', line 4

def query
  @query
end

#statusObject

Returns the value of attribute status.



4
5
6
# File 'lib/chargebee/models/metered_feature.rb', line 4

def status
  @status
end

#typeObject

Returns the value of attribute type.



4
5
6
# File 'lib/chargebee/models/metered_feature.rb', line 4

def type
  @type
end

Class Method Details

.archive(id, env = nil, headers = {}) ⇒ Object



18
19
20
21
22
23
24
25
# File 'lib/chargebee/models/metered_feature.rb', line 18

def self.archive(id, env=nil, headers={})
  jsonKeys = { 
  }
  options = {
      :isIdempotent => true
    }
  Request.send('post', uri_path("metered_features",id.to_s,"archive_command"), {}, env, headers,nil, false, jsonKeys, options, "meteredFeature", "archive")
end

.create(params, env = nil, headers = {}) ⇒ Object

OPERATIONS



9
10
11
12
13
14
15
16
# File 'lib/chargebee/models/metered_feature.rb', line 9

def self.create(params, env=nil, headers={})
  jsonKeys = { 
  }
  options = {
      :isIdempotent => true
    }
  Request.send('post', uri_path("metered_features"), params, env, headers,nil, false, jsonKeys, options, "meteredFeature", "create")
end

.delete(id, env = nil, headers = {}) ⇒ Object



36
37
38
39
40
41
42
43
# File 'lib/chargebee/models/metered_feature.rb', line 36

def self.delete(id, env=nil, headers={})
  jsonKeys = { 
  }
  options = {
      :isIdempotent => true
    }
  Request.send('post', uri_path("metered_features",id.to_s,"delete"), {}, env, headers,nil, false, jsonKeys, options, "meteredFeature", "delete")
end

.reactivate(id, env = nil, headers = {}) ⇒ Object



27
28
29
30
31
32
33
34
# File 'lib/chargebee/models/metered_feature.rb', line 27

def self.reactivate(id, env=nil, headers={})
  jsonKeys = { 
  }
  options = {
      :isIdempotent => true
    }
  Request.send('post', uri_path("metered_features",id.to_s,"reactivate_command"), {}, env, headers,nil, false, jsonKeys, options, "meteredFeature", "reactivate")
end