Class: BundleInfoBase

Inherits:
InfoBase show all
Defined in:
lib/mrpin/core/bundles/bundle_info_base.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from InfoBase

attributes, ignored_methods

Constructor Details

#initializeBundleInfoBase

Returns a new instance of BundleInfoBase.



17
18
# File 'lib/mrpin/core/bundles/bundle_info_base.rb', line 17

def initialize
end

Instance Attribute Details

#nameObject

Returns the value of attribute name.



8
9
10
# File 'lib/mrpin/core/bundles/bundle_info_base.rb', line 8

def name
  @name
end

#urlObject

Returns the value of attribute url.



9
10
11
# File 'lib/mrpin/core/bundles/bundle_info_base.rb', line 9

def url
  @url
end

#versionObject

Properties



7
8
9
# File 'lib/mrpin/core/bundles/bundle_info_base.rb', line 7

def version
  @version
end

Instance Method Details

#serializeObject



21
22
23
24
25
26
27
# File 'lib/mrpin/core/bundles/bundle_info_base.rb', line 21

def serialize
  {
      version: version,
      name:    name,
      url:     url
  }
end