Class: MxHero::API::Domain
- Includes:
- MetadataLoader
- Defined in:
- lib/resources/domain.rb
Instance Method Summary collapse
- #change_to_trial ⇒ Object
-
#initialize(data = {}) ⇒ Domain
constructor
A new instance of Domain.
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_trial ⇒ Object
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 |