class Beaver::FundraisingUpdate
FundraisingUpdate
Model.
Attributes
campaign_page_update[RW]
TODO: Write general description for this method @return [String]
campaign_title_update[RW]
TODO: Write general description for this method @return [String]
Public Class Methods
from_hash(hash)
click to toggle source
Creates an instance of the object from a hash.
# File lib/beaver/models/fundraising_update.rb, line 32 def self.from_hash(hash) return nil unless hash # Extract variables from the hash. campaign_page_update = hash['campaign_page_update'] campaign_title_update = hash['campaign_title_update'] # Create object from extracted values. FundraisingUpdate.new(campaign_page_update, campaign_title_update) end
names()
click to toggle source
A mapping from model property names to API property names.
# File lib/beaver/models/fundraising_update.rb, line 18 def self.names @_hash = {} if @_hash.nil? @_hash['campaign_page_update'] = 'campaign_page_update' @_hash['campaign_title_update'] = 'campaign_title_update' @_hash end
new(campaign_page_update = nil, campaign_title_update = nil)
click to toggle source
# File lib/beaver/models/fundraising_update.rb, line 25 def initialize(campaign_page_update = nil, campaign_title_update = nil) @campaign_page_update = campaign_page_update @campaign_title_update = campaign_title_update end