Class: Domain

Inherits:
Object
  • Object
show all
Includes:
ActiveModel::Model, ActiveModel::Serializers::JSON, ActiveModel::Validations
Defined in:
lib/yadecli/model/domain.rb

Overview

Domain

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#idObject

Returns the value of attribute id.



11
12
13
# File 'lib/yadecli/model/domain.rb', line 11

def id
  @id
end

#nameObject

Returns the value of attribute name.



11
12
13
# File 'lib/yadecli/model/domain.rb', line 11

def name
  @name
end

Instance Method Details

#attributesObject



21
22
23
# File 'lib/yadecli/model/domain.rb', line 21

def attributes
  instance_values
end

#attributes=(hash) ⇒ Object



15
16
17
18
19
# File 'lib/yadecli/model/domain.rb', line 15

def attributes=(hash)
  hash.each do |key, value|
    send("#{key}=", value)
  end
end