Class: Xcode::Platform

Inherits:
Object
  • Object
show all
Defined in:
lib/xcode/platform.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, platform, version) ⇒ Platform

Returns a new instance of Platform.



50
51
52
53
54
# File 'lib/xcode/platform.rb', line 50

def initialize name, platform, version
  @platform = platform
  @name = name
  @version = version
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



48
49
50
# File 'lib/xcode/platform.rb', line 48

def name
  @name
end

#platformObject (readonly)

Returns the value of attribute platform.



48
49
50
# File 'lib/xcode/platform.rb', line 48

def platform
  @platform
end

#versionObject (readonly)

Returns the value of attribute version.



48
49
50
# File 'lib/xcode/platform.rb', line 48

def version
  @version
end

Instance Method Details

#sdkObject



56
57
58
# File 'lib/xcode/platform.rb', line 56

def sdk
  "#{@platform}#{@version}"
end

#to_sObject



60
61
62
# File 'lib/xcode/platform.rb', line 60

def to_s
  "#{name} #{sdk}"
end