Class: Fastlane::FastlanePlugin
- Inherits:
-
Object
- Object
- Fastlane::FastlanePlugin
- Defined in:
- lib/fastlane/plugins/plugin_fetcher.rb
Instance Attribute Summary collapse
-
#downloads ⇒ Object
Returns the value of attribute downloads.
-
#full_name ⇒ Object
Returns the value of attribute full_name.
-
#homepage ⇒ Object
Returns the value of attribute homepage.
-
#info ⇒ Object
Returns the value of attribute info.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(hash) ⇒ FastlanePlugin
constructor
A new instance of FastlanePlugin.
- #linked_title ⇒ Object
Constructor Details
#initialize(hash) ⇒ FastlanePlugin
Returns a new instance of FastlanePlugin.
53 54 55 56 57 58 59 |
# File 'lib/fastlane/plugins/plugin_fetcher.rb', line 53 def initialize(hash) self.full_name = hash["name"] self.name = self.full_name.gsub(PluginManager.plugin_prefix, '') self.downloads = hash["downloads"] self.info = hash["info"] self.homepage = hash["homepage_uri"] end |
Instance Attribute Details
#downloads ⇒ Object
Returns the value of attribute downloads.
49 50 51 |
# File 'lib/fastlane/plugins/plugin_fetcher.rb', line 49 def downloads @downloads end |
#full_name ⇒ Object
Returns the value of attribute full_name.
47 48 49 |
# File 'lib/fastlane/plugins/plugin_fetcher.rb', line 47 def full_name @full_name end |
#homepage ⇒ Object
Returns the value of attribute homepage.
51 52 53 |
# File 'lib/fastlane/plugins/plugin_fetcher.rb', line 51 def homepage @homepage end |
#info ⇒ Object
Returns the value of attribute info.
50 51 52 |
# File 'lib/fastlane/plugins/plugin_fetcher.rb', line 50 def info @info end |
#name ⇒ Object
Returns the value of attribute name.
48 49 50 |
# File 'lib/fastlane/plugins/plugin_fetcher.rb', line 48 def name @name end |
Instance Method Details
#linked_title ⇒ Object
61 62 63 64 |
# File 'lib/fastlane/plugins/plugin_fetcher.rb', line 61 def linked_title return "`#{name}`" if homepage.to_s.length == 0 return "[#{name}](#{homepage})" end |