Class: Framework

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

Overview

Example data:

  • “name” : “Sentry”,

  • “linking” : “dynamic”

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, linking) ⇒ Framework

Returns a new instance of Framework.



11
12
13
14
# File 'lib/framework.rb', line 11

def initialize(name, linking)
  @name = name
  @linking = linking
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



5
6
7
# File 'lib/framework.rb', line 5

def name
  @name
end

Class Method Details

.parse(json) ⇒ Object



7
8
9
# File 'lib/framework.rb', line 7

def self.parse(json)
  Framework.new(json["name"], json["linking"])
end

Instance Method Details

#make_archive(platform) ⇒ Object



16
17
18
# File 'lib/framework.rb', line 16

def make_archive(platform)
  FrameworkCarthageArchive.new(name, platform)
end