Class: GM::AdnNote
Instance Attribute Summary collapse
-
#adapter_expected_version ⇒ Object
期望加载的版本号.
-
#adapter_name ⇒ Object
Returns the value of attribute adapter_name.
-
#adapter_original_version ⇒ Object
加载的版本号.
-
#adn_name ⇒ Object
Returns the value of attribute adn_name.
-
#adn_version ⇒ Object
Returns the value of attribute adn_version.
Attributes inherited from Note
#auto_load, #auto_update, #load_detect
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(adn_name, auto_load = false, auto_update = GM::BuildConfig.update_value_non, load_detect = false) ⇒ AdnNote
constructor
A new instance of AdnNote.
- #to_hash ⇒ Object
Methods inherited from Note
Constructor Details
#initialize(adn_name, auto_load = false, auto_update = GM::BuildConfig.update_value_non, load_detect = false) ⇒ AdnNote
Returns a new instance of AdnNote.
137 138 139 140 141 142 143 144 145 |
# File 'lib/cocoapods-byte-csjm/gm.rb', line 137 def initialize(adn_name, auto_load = false , auto_update = GM::BuildConfig.update_value_non, load_detect = false) @adn_name = adn_name @adapter_name = GM::Adn_Adapter.get_adapter adn_name @auto_load = auto_load @auto_update = get_update auto_update @load_detect = load_detect @adapter_original_version = "" @adapter_expected_version = "" end |
Instance Attribute Details
#adapter_expected_version ⇒ Object
期望加载的版本号
135 136 137 |
# File 'lib/cocoapods-byte-csjm/gm.rb', line 135 def adapter_expected_version @adapter_expected_version end |
#adapter_name ⇒ Object
Returns the value of attribute adapter_name.
133 134 135 |
# File 'lib/cocoapods-byte-csjm/gm.rb', line 133 def adapter_name @adapter_name end |
#adapter_original_version ⇒ Object
加载的版本号
134 135 136 |
# File 'lib/cocoapods-byte-csjm/gm.rb', line 134 def adapter_original_version @adapter_original_version end |
#adn_name ⇒ Object
Returns the value of attribute adn_name.
131 132 133 |
# File 'lib/cocoapods-byte-csjm/gm.rb', line 131 def adn_name @adn_name end |
#adn_version ⇒ Object
Returns the value of attribute adn_version.
132 133 134 |
# File 'lib/cocoapods-byte-csjm/gm.rb', line 132 def adn_version @adn_version end |
Class Method Details
.from_hash(hash) ⇒ Object
160 161 162 163 164 165 166 167 168 |
# File 'lib/cocoapods-byte-csjm/gm.rb', line 160 def self.from_hash(hash) note = AdnNote.new(hash["ADN_NAME"],hash["AUTO_LOAD"],hash["AUTO_UPDATE"],hash["LOAD_DETECT"]) note.adn_name = hash["ADN_NAME"] note.adn_version = hash["ADN_VERSION"] note.adapter_name = hash["ADAPTER_NAME"] note.adapter_original_version = hash["ADAPTER_ORIGINAL_VERSION"] note.adapter_expected_version = hash["ADAPTER_EXPECTED_VERSION"] note end |
Instance Method Details
#to_hash ⇒ Object
147 148 149 150 151 152 153 154 155 156 157 158 |
# File 'lib/cocoapods-byte-csjm/gm.rb', line 147 def to_hash hash = {} hash["ADN_NAME"] = @adn_name hash["ADN_VERSION"] = @adn_version hash["ADAPTER_NAME"] = @adapter_name hash["ADAPTER_ORIGINAL_VERSION"] = @adapter_original_version hash["ADAPTER_EXPECTED_VERSION"] = @adapter_expected_version hash["AUTO_LOAD"] = @auto_load hash["AUTO_UPDATE"] = @auto_update hash["LOAD_DETECT"] = @load_detect hash end |