Class: Sidemash::Sdk::Domain

Inherits:
Object
  • Object
show all
Defined in:
lib/sidemash/sdk/domain.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(obj) ⇒ Domain

Returns a new instance of Domain.



13
14
15
16
17
18
19
20
21
22
# File 'lib/sidemash/sdk/domain.rb', line 13

def initialize(obj)
  @_type = obj['_type']
  @id = obj['id']
  @url = obj['url']
  @created_time = obj['createdTime']
  @foreign_data = obj['foreignData']
  @description = obj['description']
  @name = obj['name']
  @status = obj['status']
end

Instance Attribute Details

#_typeObject (readonly)

Returns the value of attribute _type.



4
5
6
# File 'lib/sidemash/sdk/domain.rb', line 4

def _type
  @_type
end

#created_timeObject (readonly)

Returns the value of attribute created_time.



7
8
9
# File 'lib/sidemash/sdk/domain.rb', line 7

def created_time
  @created_time
end

#descriptionObject (readonly)

Returns the value of attribute description.



9
10
11
# File 'lib/sidemash/sdk/domain.rb', line 9

def description
  @description
end

#foreign_dataObject (readonly)

Returns the value of attribute foreign_data.



8
9
10
# File 'lib/sidemash/sdk/domain.rb', line 8

def foreign_data
  @foreign_data
end

#idObject (readonly)

Returns the value of attribute id.



5
6
7
# File 'lib/sidemash/sdk/domain.rb', line 5

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name.



10
11
12
# File 'lib/sidemash/sdk/domain.rb', line 10

def name
  @name
end

#statusObject (readonly)

Returns the value of attribute status.



11
12
13
# File 'lib/sidemash/sdk/domain.rb', line 11

def status
  @status
end

#urlObject (readonly)

Returns the value of attribute url.



6
7
8
# File 'lib/sidemash/sdk/domain.rb', line 6

def url
  @url
end