Class: GM::Note

Inherits:
Object
  • Object
show all
Defined in:
lib/cocoapods-byte-csjm/gm.rb

Overview

媒体配置记录

Direct Known Subclasses

AdnNote, GlobalNote

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#auto_loadObject

Returns the value of attribute auto_load.



74
75
76
# File 'lib/cocoapods-byte-csjm/gm.rb', line 74

def auto_load
  @auto_load
end

#auto_updateObject

Returns the value of attribute auto_update.



75
76
77
# File 'lib/cocoapods-byte-csjm/gm.rb', line 75

def auto_update
  @auto_update
end

#load_detectObject

Returns the value of attribute load_detect.



76
77
78
# File 'lib/cocoapods-byte-csjm/gm.rb', line 76

def load_detect
  @load_detect
end

Instance Method Details

#get_update(update_value) ⇒ Object



77
78
79
80
81
82
83
84
85
86
87
88
89
90
# File 'lib/cocoapods-byte-csjm/gm.rb', line 77

def get_update(update_value)
  value = ''
  case update_value
  when true
    value = GM::BuildConfig.update_value_last_version
  when false
    value = GM::BuildConfig.update_value_non
  when String
    value = update_value
  else
    raise ArgumentError, "CSJM error: `#{update_value.inspect}`, should be a boolean or string."
  end
  value
end