Class: MxHero::API::Domain

Inherits:
Resource show all
Includes:
MetadataLoader
Defined in:
lib/resources/domain.rb

Instance Method Summary collapse

Methods inherited from Resource

attribute, attributes, #to_json

Constructor Details

#initialize(data = {}) ⇒ Domain

Returns a new instance of Domain.



35
36
37
38
39
40
# File 'lib/resources/domain.rb', line 35

def initialize(data = {})
  super(data)
  load_features(features)
  load_cos(cos)
  # load_metadata
end

Instance Method Details

#change_to_trialObject



42
43
44
45
46
# File 'lib/resources/domain.rb', line 42

def change_to_trial
  if cos.type == 'free'
    cos.type = 'trial'
  end
end